while True:
try:
n = input()
for i in range(21):
for j in range(34):
k = 100 - i - j
if 5*i + 3*j + k/3 == 100:
print(i, j, k)
except:
break
while True:
try:
n = input()
for i in range(21):
for j in range(34):
k = 100 - i - j
if 5*i + 3*j + k/3 == 100:
print(i, j, k)
except:
break