#include <bits/stdc++.h>
using namespace std;
const int M = 1e5 + 10;
int ans[M];
int main() {
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) ans[i] = 1e9 + 2;
  for (int k = 0; k < 10; k++) {
    vector<int> x;
    for (int i = 0; i < n; i++)
      if ((i >> k) & 1) x.push_back(i);
    if (!x.size()) break;
    cout << x.size() << endl;
    for (int i = 0; i < x.size(); i++) cout << x[i] + 1 << " ";
    cout << endl;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      if ((~i >> k) & 1) ans[i] = min(ans[i], x);
    }
    x.clear();
    for (int i = 0; i < n; i++)
      if ((~i >> k) & 1) x.push_back(i);
    cout << x.size() << endl;
    for (int i = 0; i < x.size(); i++) cout << x[i] + 1 << " ";
    cout << endl;
    for (int i = 0; i < n; i++) {
      int x;
      cin >> x;
      if ((i >> k) & 1) ans[i] = min(ans[i], x);
    }
  }
  cout << -1 << endl;
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
