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