while True:
try:
n = int(input())
for x in range(21):
for y in range(34):
for z in range(0, 100, 3):
if x + y + z == 100 and x * 5 + y * 3 + z / 3 == 100:
print(x, y, z)
except:
break