import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNextInt()) {
sc.nextInt();
/*
5x+3y+z/3=100(元)
公:x
母:y
子:z
x+y+z=100(只) 等于100只
公式堆叠后
15x+9y+z=300
x+y+z=100
>>
14x+8y=200
>>
7x+4y=100
那么最多买x只鸡,x的范围为 0~100/7
*/
for (int x = 0; x <= 14; x++) {
//买x只公鸡后,还可以买多少只母鸡, 需要
if ((100 - (7 * x)) % 4 == 0) {
int y = (100 - (7 * x)) / 4;
int z = 100 - x - y;
System.out.println(x + " " + y + " " + z);
}
}
}
}
}