#include using namespace std; int main(){ ios::sync_with_stdio(false),cin.tie(0); int q; cin >> q; auto query = [](int x,int y) -> long long { long long ret = 0; cout << '?' << ' ' << x << ' ' << y << endl; cin >> ret; return ret; }; while(q--){ long long a = query(1e6,0),b = query(1e6,1e6); cout << '!' << ' ' << (2*b-1)/(b-a) << endl; int t; cin >> t; } }