#include <stdio.h> #include <algorithm> #include <iostream> #include <string> #include <vector> #include <functional> #include <map> #include <iomanip> #include <math.h> #include <stack> #include <queue> #include <bitset> #include <cstdlib> #include <tuple> #include <cctype> #include <ctype.h> #include <set> #include <sstream> using namespace std; int main() { int i, j, k; long long n; cin >> n; if (n <= 2) { cout << 1 << endl; } else { cout << (long long)sqrt(n / 3) << endl; } getchar(); getchar(); return 0; }