#include using namespace std; using ll = long long; const int L = 1000000; int main() { int T; cin >> T; while (T--) { ll R1, R2; cout << "? " << L << ' ' << 0 << endl; cin >> R1; if (R1 == -1) return 0; cout << "? " << L << ' ' << L << endl; cin >> R2; if (R2 == -1) return 0; int N = (2 * R2 - 1) / (R2 - R1), st; cout << "! " << N << endl; cin >> st; if (st == -1) return 0; } }