import sys a = input() b = [5,3,1/3] for i in range(0,100): for j in range(0,100): if i*b[0]+j*b[1]+(100-i-j)*b[2] == 100 and 100-i-j >= 0: print(i,j,100-i-j)