#include<bits/stdc++.h>
#define int long long
int t;
signed main(){
std::cin>>t;
while(t--){
int x=rand()+114514;
std::cout<<"? "<<x<<std::endl;
int y;
std::cin>>y;
std::cout<<"? "<<x-y-1<<std::endl;
int qwq;
std::cin>>qwq;
std::cout<<"! "<<++qwq<<std::endl;
}
return 0;
}
rt,是我算法写丑了还是交互写丑了qwq