while True:
    try:
        a=input()
        for k in range(4):
            x = 4 * k
            y = 25 - 7 * k
            z = 100 - x - y
            print('{} {} {}'.format(x, y, z))
    except:
        break