<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def decline_weak_masculine_noun(ns: str, gs: str, np: str):
 """ Gives the full declension of weak masculine nouns. goði goða goða goða goðar goða goðum goða hluti hluta hluta hluta hlutar hluta hlutum hluta arfi arfa arfa arfa arfar arfa örfum arfa bryti bryta bryta bryta brytjar brytja brytjum brytja vöðvi vöðva vöðva vöðva vöðvar vöðva vöðum vöðva The main pattern is: :param ns: nominative singular :param gs: genitive singular :param np: nominative plural :return: """

    # nominative singular
    print(ns)

    # accusative singular
    print(gs)

    # dative singular
    print(gs)

    # genitive singular
    print(gs)

    # nominative plural
    print(np)

    # accusative plural
    print(np[:-1])

    # dative plural
    if len(np) > 3 and np[-3] == "v":
        print(apply_u_umlaut(np[:-3]) + "um")
    else:
        print(apply_u_umlaut(np[:-2]) + "um")

    # genitive plural
    print(np[:-1])