while True:
try:
n=input()
except:
break
else:
for i in range(0,101):
z=3*i # 鸡仔数量
res_money = 100-i # 扣除鸡仔的钱
if res_money>0:
for m in range(res_money+1):
n=res_money-m
if m%5==0 and n%3==0:
a = int(m/5)
b = int(n/3)
if (z+a+b==100):
print(a,b,z)