//#define _GLIBCXX_DEBUG #include "bits/stdc++.h" using namespace std; //------------------------------- Type Names -------------------------------// using i64 = int_fast64_t; using seika = string; //{akari : 1D, yukari : 2D, maki : 3D} vector template using akari = vector; template using yukari = akari>; template using maki = akari>; //{akane : ascending order, aoi : decending order} priority queue template using akane = priority_queue, greater>; template using aoi = priority_queue; //------------------------------- Libraries --------------------------------// //------------------------------- Dubug Functions ---------------------------// inline void print() { cout << endl; } template void print(const First &first, const Rest &... rest) { cout << first << ' '; print(rest...); } //------------------------------- Solver ------------------------------------// void solve() { int n; cin >> n; akari ans(n); for (int i = 0; i < n; i++) { cout << "? " << n - 1 << '\n'; for (int j = 0; j < n; j++) { if (i == j) { continue; } cout << j + 1 << ' '; } cout << endl; cin >> ans[i]; ans[i] = 1 - ans[i]; } cout << "! " << accumulate(ans.begin(), ans.end(), 0) << '\n'; for (int i = 0; i < n; i++) { if (ans[i]) { cout << i + 1 << ' '; } } cout << endl; } int main() { solve(); return 0; }