n = int(input()) # 鸡翁最多20只 for i in range(0, 21): # 鸡母最多33只 for j in range(0, 34): # 鸡雏最多300只 for z in range(0, 301): if z % 3 == 0 and 5*i + 3*j + z//3 == 100 and i + j + z == 100: print("{} {} {}".format(i, j, z))