#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> mini;
void askU(int b, int f) {
  vector<int> ask;
  vector<int> vis(n, 1);
  int s = f;
  for (int i = 0; i < n; i++) {
    if (i % b == 0) s = !s;
    if (s) {
      ask.push_back(i + 1);
      vis[i] = 0;
    }
  }
  if (ask.size() == 0) return;
  printf("%d\n", (int)ask.size());
  for (int i = 0; i < ask.size(); i++) {
    if (i > 0) printf(" ");
    printf("%d", ask[i]);
  }
  printf("\n");
  fflush(stdout);
  vector<int> res(n, 0);
  for (int i = 0; i < n; i++) {
    scanf("%d", &res[i]);
    if (vis[i]) mini[i] = min(mini[i], res[i]);
  }
}
void run() {
  scanf("%d", &n);
  mini.resize(n, 1000000000LL);
  int b = 1;
  for (int i = 0; i < 10; i++) {
    askU(b, 0);
    askU(b, 1);
    b *= 2;
  }
  printf("-1\n");
  for (int i = 0; i < n; i++) {
    if (i > 0) printf(" ");
    printf("%d", mini[i]);
  }
  printf("\n");
  fflush(stdout);
}
int main() { run(); }
