#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ ll n; cin >> n; cout << ceil(sqrt(n/3)) << endl; return 0; }