#include <iostream>
using namespace std;

const int f[] = {-1,0,0,0,0,1,1,1,2,2,2,2,2,3,3,3};

int main() {
	
	int l = 0, r = 15; 
	while( l+1 < r ) {
  		int x = l + (r-l)/2;
  		if( f[x] < 2 )
    		l = x;
  		else
    		r = x; 
	}
	
	cout << "(l;r] = " << "(" << l << ";" << r << ")" << "\n";
	cout << "f(r) = " << f[r] << "\n";
	if( f[r] == 2 ) 
		cout << "FOUND"; 
	else 
		cout << "NOT FOUND";
	
	return 0;
}