#include <iostream>
#include <fstream>
using namespace std;

int main() {
    ifstream fin("produsmaxim.in");
    ofstream fout("produsmaxim.out");
     int x;
    while(cin >> x) {
        cout << x << ' ';
     int y = x - x % 3;
    cout << x / 3 << ' ';
    if(x % 3 == 2) {
         cout << y / 3 + 1 << ' ' << y / 3 + 1;
    } else if(x % 3 == 1) {
         cout << y / 3 << ' ' << y / 3 + 1;
    } else {
        cout << x / 3 <<  ' ' << x / 3;
    }
        cout << endl;
    }
}
