x+y+z=100
5x+3y+z/3=100
根据这两个关系式,消去z,14x+8y=200
y=25-7x/4
设x=4k
则y=25-7k ;
使等式成立的K只能取到0,1,2,3

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