a = input()
for i in range(21):
for j in range(34):
if (100 - 5*i - 3*j)*3+i+j == 100:
print(i,j,100-i-j)
a = input()
for i in range(21):
for j in range(34):
if (100 - 5*i - 3*j)*3+i+j == 100:
print(i,j,100-i-j)