n = input() n = 100 a, b, c = 0, 0, 0 for d in range(21): for f in range(34): for g in range(0,301,3): if d * 5 + f * 3 + int(g/3) == 100 and d + f + g == 100: print(str(d) + ' ' + str(f) + ' ' + str(g))