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