#include using namespace std; int L; int f(int x, int y) { if (8 * x * (x + y) > L) return 0; return (x + y) % 2 + f(x + y, x) + f(x + y, y); } int main() { cin >> L; cout << f(2, 1) << endl; }