#include #include #include using namespace std; int main() { int n,ans; cin >> n; ans = n / 3; ans = sqrt(ans); cout << ans << endl; return 0; }