#include #include using namespace std; int main() { double n; cin >> n; cout << (int)sqrt(n/3) << endl; }