#include <bits/stdc++.h>
using namespace std;

int ask(int l, int r) {
    cout << "? " << l << ' ' << r << '\n';
    cout.flush();

    int res;
    cin >> res;
    return res;
}

void answer(int l, int r) {
    cout << "! " << l << ' ' << r << '\n';
    cout.flush();
}

int main() {
    int T, phi;
    cin >> T >> phi;

    int n, res;

    cin >> n;
    res = ask(1, 3);
    res = ask(1, 1);
    res = ask(1, 2);
    answer(1, 3);

    cin >> n;
    res = ask(1, 5);
    res = ask(1, 2);
    res = ask(1, 1);
    res = ask(1, 3);
    answer(2, 4);

    return 0;
}