#include <iostream>
using namespace std;
int main() {
int n, k, daysCounter = 0;
double waterPerTree = 0;
cin >> n;
int counter = 0;
while(waterPerTree <= 0.5) {
waterPerTree += (double) 1 / (n - counter++);
daysCounter++;
cout << counter;
}
k = n - daysCounter + 1;
cout << k;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbiwgaywgZGF5c0NvdW50ZXIgPSAwOwoJZG91YmxlIHdhdGVyUGVyVHJlZSA9IDA7CgljaW4gPj4gbjsKCWludCBjb3VudGVyID0gMDsKCXdoaWxlKHdhdGVyUGVyVHJlZSA8PSAwLjUpIHsKCQl3YXRlclBlclRyZWUgKz0gKGRvdWJsZSkgMSAvIChuIC0gY291bnRlcisrKTsKCQlkYXlzQ291bnRlcisrOwoJCWNvdXQgPDwgY291bnRlcjsKCX0KCWsgPSBuIC0gZGF5c0NvdW50ZXIgKyAxOwoJY291dCA8PCBrOwoJcmV0dXJuIDA7Cn0=