#include using namespace std; typedef long long ll; typedef __int128_t lll; typedef long double ld; typedef pair pl; typedef tuple tt; typedef vector vl; typedef vector vvl; typedef vector vvvl; typedef vector vd; typedef vector vvd; typedef vector vvvd; typedef vector vb; typedef vector vvb; typedef vector vvvb; typedef vector vc; typedef vector vvc; typedef vector vvvc; typedef vector vp; typedef vector vt; typedef vector vs; const ll INF = 1000000010; const ll INFL = INF * INF; const double MYPI = acos(-1); const ld epsilon = 1e-10; #define ovl(a, b, c, d, e, ...) e #define pb push_back #define eb emplace_back #define MP make_pair #define DEBUG(...) DEBUG_(#__VA_ARGS__, __VA_ARGS__) #define REP1(i, n) for (int i = 0; i < (n); i++) #define REP2(i, l, r) for (int i = (l); i < (r); i++) #define REP3(i, l, r, d) for (int i = (l); i < (r); i += (d)) #define REP(...) ovl(__VA_ARGS__, REP3, REP2, REP1)(__VA_ARGS__) #define RREP1(i, n) for (int i = (n)-1; i >= 0; i--) #define RREP2(i, l, r) for (int i = (r)-1; i >= (l); i--) #define RREP3(i, l, r, d) for (int i = (r)-1; i >= (l); i -= (d)) #define RREP(...) ovl(__VA_ARGS__, RREP3, RREP2, RREP1)(__VA_ARGS__) #define EACH1(e, a) for (auto &e : a) #define EACH2(x, y, a) for (auto &[x, y] : a) #define EACH3(x, y, z, a) for (auto &[x, y, z] : a) #define EACH(...) ovl(__VA_ARGS__, EACH3, EACH2, EACH1)(__VA_ARGS__) #define ALL(x) begin(x), end(x) #define RALL(x) (x).rbegin(), (x).rend() #define sz(x) (ll) x.size() #define LB(a, x) (lower_bound(ALL(a), x) - a.begin()) #define UB(a, x) (upper_bound(ALL(a), x) - a.begin()) #define FLG(x, i) (((x) >> (i)) & 1) #define CNTBIT(x) __builtin_popcountll(x) #define TOPBIT(t) (t == 0 ? -1 : 63 - __builtin_clzll(t)) #define IN(x, a, b) ((a) <= (x) && (x) < (b)) #define int ll template void OUT(const T &a, const Ts &...b) { cout << a; (cout << ... << (cout << " ", b)); cout << endl; } template void DEBUG_(string_view name, const T &a) { cout << name << ": " << a << endl; } template void DEBUG_(string_view name, const vector &a) { cout << name << ": "; REP(i, sz(a)) cout << a[i] << " "; cout << endl; } template bool chmax(T &x, const U &y) { return x < y ? x = y, 1 : 0; } template bool chmin(T &x, const U &y) { return x > y ? x = y, 1 : 0; } template using minheap = priority_queue, greater>; template using maxheap = priority_queue; const vl dy = {1, 0, -1, 0, 1, -1, -1, 1}; const vl dx = {0, 1, 0, -1, 1, 1, -1, -1}; template struct Edge { ll from, to; T cost; ll idx; Edge(ll f, ll t, T c = 1, ll i = -1) : from(f), to(t), cost(c), idx(i) {} operator int() const { return to; } }; template struct Graph { vector>> g; ll es; explicit Graph(ll n) : g(n), es(0) {} size_t size() const { return sz(g); } void add_directed_edge(ll from, ll to, T cost = 1) { g[from].eb(from, to, cost, es++); } void add_edge(ll from, ll to, T cost = 1) { g[from].eb(from, to, cost, es); g[to].eb(to, from, cost, es++); } inline vector> &operator[](const int &k) { return g[k]; } inline const vector> &operator[](const int &k) const { return g[k]; } }; //----------------------------------------------------------------------- void solve() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(15); // int maxSz = 0; // int bestX1 = -1; // int bestX2 = -1; // REP(x1, 1, 100 + 1) { // REP(x2, x1 + 1, 100 + 1) { // set> seen; // REP(A, 100 + 1) { // REP2(B, A + 1, 100 + 1) { // seen.insert({(x1 + A) % B, (x2 + A) % B}); // } // } // if (chmax(maxSz, seen.size())) { // bestX1 = x1; // bestX2 = x2; // } // } // } // DEBUG(maxSz); // DEBUG(bestX1); // DEBUG(bestX2); OUT("? 100"); int x; cin >> x; if (x == 99) { OUT("! 99 100"); return; } OUT("? " + to_string(100 - x - 1)); int y; cin >> y; int B = y + 1; int A = (x - 100 + 1000 * B) % B; OUT("! " + to_string(A) + " " + to_string(B)); } signed main() { int T = 1; // cin >> T; while (T--) solve(); // random_test(); return 0; }