// NOTE: it is recommended to use this even if you don't understand the following code.

#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

int main() {
    // uncomment the following lines if you want to read/write from files
    // ifstream cin("input.txt");
    // ofstream cout("output.txt");

    int N;
    cin >> N;
    vector<int> x(N), y(N);

    for (int i = 0; i < N; i++) {
        cin >> x[i] >> y[i];
    }

    cout << "? " << 0 << " " << 1 << "\n";
    cout.flush();

    int ans;
    cin >> ans;
    cout << "! " << ans << "\n";
    cout.flush();

    return 0;
}
