#include <iostream>
#include <cstdint>

using namespace std;

bool smaller(int x);

int find_number(int MAX) {
    int left = 1;
    int right = MAX;
    for (int mid = (left + right) / 2; left != mid; mid = (left + right) / 2) {
        if (smaller(mid)) {
            right = mid;
        }
        else {
            left = mid;
        }
    }
    return left;
}