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