import java.util.*;
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=100
* 以上两个公式计算得7x+4y=100
* 100/7≈14
*/
for (int x = 0; x <= 14; x++) {
if ((100 - x * 7) % 4 == 0) {
int y = (100 - x * 7) / 4;
int z = 100 - x - y;
System.out.println(x + " " + y + " " + z);
}
}
}
sc.close();
}
}