#include<iostream> #include<cmath> using namespace std; int main() { long long a,b; cin>>b; a=floor(pow(b,1.0/3)); cout<<a; }