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