while True:
    try:
        a = input()
        for x in range(0, 13):
            if (100 - 7 * x) % 4 == 0:
                y = (100 - 7 * x) // 4
                z = 100 - x - y
                if x + y + z == 100 and 5 * x + 3 * y + z // 3 == 100:
                    print('{} {} {}'.format(x, y, z))
    except:
        break