#include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int N=1e9; while(true) { int x=(N+1)/2; cout<>r; if(r==1)break; N=x-1; } }