while True:
    try:
        n=int(input())
        for num in range(4):
            a=4*num
            b=25-7*num
            c=75+3*num
            print(a,b,c)
    except:
        break