#include using namespace std; int main() { int a; int b; int c; int N; cin >> N; b = 1; c = 1; for (a = 1; a <= b;a++) { for (b = 1; b <= c;b++) { c = N - (b + a); if (a <= b && b<=c) { cout << a << " " << b << " " << c << endl; } } } }