#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;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8ZnN0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaWZzdHJlYW0gZmluKCJwcm9kdXNtYXhpbS5pbiIpOwogICAgb2ZzdHJlYW0gZm91dCgicHJvZHVzbWF4aW0ub3V0Iik7CiAgICAgaW50IHg7CiAgICB3aGlsZShjaW4gPj4geCkgewogICAgICAgIGNvdXQgPDwgeCA8PCAnICc7CiAgICAgaW50IHkgPSB4IC0geCAlIDM7CiAgICBjb3V0IDw8IHggLyAzIDw8ICcgJzsKICAgIGlmKHggJSAzID09IDIpIHsKICAgICAgICAgY291dCA8PCB5IC8gMyArIDEgPDwgJyAnIDw8IHkgLyAzICsgMTsKICAgIH0gZWxzZSBpZih4ICUgMyA9PSAxKSB7CiAgICAgICAgIGNvdXQgPDwgeSAvIDMgPDwgJyAnIDw8IHkgLyAzICsgMTsKICAgIH0gZWxzZSB7CiAgICAgICAgY291dCA8PCB4IC8gMyA8PCAgJyAnIDw8IHggLyAzOwogICAgfQogICAgICAgIGNvdXQgPDwgZW5kbDsKICAgIH0KfQo=