#include using namespace std; using ll = long long; void qry(int x){ cout << "? " << x << endl; } void ans(int a, int b){ cout << "! " << a << " " << b << endl; exit(0); } int main(){ int x, y, a, b; qry(100); cin >> x; if (x == 99) ans(99, 100); qry(99-x); cin >> y; b = y+1; a = ((x-100)%b+b) % b; ans(a, b); return 0; }