#include "cstdio"
#include "cstdlib"
#include <iostream>
using namespace std;

long long A(long long i);

//
//  Input: c, an integer
//         n, the size of the heap defined by A(0..n-1)
//
// Output: k, the number of elements in the heap that are >= c
//
//   Note: Use the function A(i) to obtain the element at postion i in the heap.
//         
long long count(long long c, long long n)
{

    // Note: Replace the line below with your implementation.
    // Note: You may add arguments to the calling sequence of count, 
    //       provided they are optional.
    return 0LL;

}

int main()
{
    long long c;
    long long n = 288230376151711744LL; // size of the heap

    while (cin >> c) {
        printf("%lld\n", count(c, n));
    }

}
