// macros #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair pii; #define LLINF 1000000000000000000LL #define FOR(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define debug(a) cout << "L(" << __LINE__ << "):" << #a << ":" << a << endl; // problems limits #define MAX_N 100000 // Variables ll n; // problems input void input() { cin >> n; } // problems main void solve() { n /= 3; n = sqrt(n); if (n==0) n=1; cout << n << endl; } int main() { ios::sync_with_stdio(false); input(); solve(); }