import java.util.Scanner;

/**
 * HJ72 百钱买百鸡问题 - 简单
 */
public class HJ072 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            print(sc.nextInt());
        }
        sc.close();
    }

    private static void print(int num) {
        int x, y, z;
        for (x = 0; x <= 14; x++) {
            if ((100 - 7 * x) % 4 == 0) {
                y = (100 - 7 * x) / 4;
                z = 100 - x - y;
                System.out.print(x + " ");
                System.out.print(y + " ");
                System.out.print(z + " ");
                System.out.println();
            }
        }
    }
}