#include #include using namespace std; using namespace atcoder; struct Fast { Fast() { std::cin.tie(nullptr); ios::sync_with_stdio(false); cout << setprecision(10); } } fast; #define rep(i, a, b) for (int(i) = (a); (i) < (int)(b); (i)++) int guess(int i, int j) { cout << "? " << (i + 1) << " " << (j + 1) << endl; int l; cin >> l; return l; } int main() { int n; cin >> n; rep(i, 0, 3 * n + 1) guess(0, 0); cout << "!"; rep(i, 0, n) cout << " " << (i + 1); rep(i, 0, n) cout << " " << (i + 1); cout << endl; }