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