void solve(int N);
int ask(int Y);