x+y+z=1005x+3y+z/3=100根据这两个关系式,消去z,14x+8y=200y=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