a=input()
for i in range(100//5):
    for j in range((100-i*5)//3):
        if i*5+j*3+(100-i-j)/3 == 100:
            print(i,j,(100-i-j))