#include #include int main() { long long n; std::cin >> n; double r = sqrt(n / 3.0); std::cout << (int)ceil(r) << std::endl; }