#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
const long long mod = 1e9 + 7;
const int maxn = 1e6 + 5;
const int inf = 2e9;
int n;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  vector<int> ans(n + 10, inf);
  for (int i = 0; i < 10; i++) {
    for (int j = 0; j < 2; j++) {
      vector<int> v;
      for (int x = 1; x <= n; x++) {
        if ((x >> i & 1) == j) {
          v.push_back(x);
        }
      }
      if (v.empty()) continue;
      cout << v.size() << endl;
      for (int q : v) cout << q << " ";
      cout << endl;
      for (int r = 1; r <= n; r++) {
        int res;
        cin >> res;
        if ((r >> i & 1) != j) {
          ans[r] = min(ans[r], res);
        }
      }
    }
  }
  cout << -1 << endl;
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
