#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define rep(i, m, n) for(int i=int(m);i inline void chmin(T1 &a, T2 b) { if (a > b) a = b; } template inline void chmax(T1 &a, T2 b) { if (a < b) a = b; } typedef long long int ll; using ll = long long int; using ull = long long unsigned int; using Int = long long int; using namespace std; #define INF (1 << 30) - 1 #define INFl (ll)5e15 #define DEBUG 0 #define dump(x) cerr << #x << " = " << (x) << endl #define MOD 1000000007 //edit class Solve { public: void solve() { Int N; cin >> N; vector not_bomb(N); for (int i = 0; i < N; ++i) { cout << "? " << N - 1 << endl; for (int j = 0; j < N; ++j) { if (i != j) cout << j + 1 << " "; } cout << endl; Int val; cin >> val; if (!val) { not_bomb[i] = true; } } vector ans; for (int i = 0; i < N; ++i) { if (!not_bomb[i]) ans.push_back(i + 1); } cout << ans.size() << endl; for (auto e : ans) cout << e << " "; cout << endl; } }; int main() { cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(10); Solve().solve(); return 0; }