#include #define int long long using namespace std; int n,t,len,l; int k; int i,ans; signed main(){ cin>>n; ans=t=n; while(t){ len++; t>>=1; } l=2; for(int j=len+10;j;j--){ l=(int)pow(n,(double)1/j); for(int i=l-2;i