#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; bool check(int num){ cout<<"? "<>ans; return ans; } signed main(){ // cin.tie(nullptr); // ios::sync_with_stdio(false); // cout< ans; cin>>N; int l = 1, h = N+1, m; while(l+1 < h){ m = (l+h)>>1; if(check(m)){ h = m; } else { l = m; } } X = h; 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<<"! "<