#include #include #include #include #include #include using namespace std; #define int long long #define endl "\n" constexpr long long INF = (long long)1e18; constexpr long long MOD = 1'000'000'007; string yn(bool f){return f?"Yes":"No";} string YN(bool f){return f?"YES":"NO";} int X; void dfs(int a, int b){ // cout< "<>1) + a; // cout<<"m = "<>ans; if(ans) dfs(a, m); else dfs(m, b); } signed main(){ // cin.tie(nullptr); // ios::sync_with_stdio(false); // cout< ans; cin>>N; dfs(1, N+1); ans.push_back(X); for(int i = 1; i <= N; i++){ if(i == X) continue; cout<<"? "<<2<>a; if(a)ans.push_back(i); } sort(ans.begin(), ans.end()); cout<<"! "<