#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll d; cin>>d; ll ans = d; for(int i =2;i<=100;i++){ ll left = 0; ll right = 1e18; while(right-left>1){ ll mid = (right+left)/2; ll now = 0; ll u = mid; for(int j = 0;j>= 1; if(now>d) break; } if(now>d) right = mid; else left = mid; } ll now = 0; ll u = left; for(int j = 0;j>= 1; if(now>d) break; } if(now==d) ans = min(ans,left); } cout<