for x in range(1):
    for y in range(1,4):
        print(y,end="")
    print()

    for y in range(4,7):
        print(y,end="")
    print()    

    for y in range(7,10):
        print(y,end="")
    print()    


