#include using namespace std; typedef long long ll; int main(void) { ll n; cin >> n; ll ans = (int)sqrt(n / 3); if (ans == 0) ans = 1; cout << ans << endl; return 0; }