#include // #include using namespace std; // using namespace atcoder; using lint = long long; using graph = vector>; #define endl '\n' lint const mod = 1e9+7; //long const mod = 998244353; int main(){ lint d; cin >> d; lint ans = d; for(int rep=1;rep<100;rep++){ lint upper = d; lint lower = 1; while(upper > lower){ lint mid = (upper + lower)/ 2; lint tmp = mid; lint kyori = mid; for(int i=0;i d){ upper = mid - 1; }else{ lower = mid + 1; } } } cout << ans << endl; }