#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long ret = 0, t = 1;
  char c = getchar();
  while ((c < '0' || c > '9') && c != '-') c = getchar();
  if (c == '-') t = -1, c = getchar();
  while (c >= '0' && c <= '9') ret = ret * 10 + c - '0', c = getchar();
  return ret * t;
}
const int MAXN = 5005;
int N, M, a[MAXN];
int main() {
  scanf("%d%d", &N, &M);
  int i, cnt = 0;
  for (i = 1; i <= N; ++i) scanf("%d", &a[i]);
  a[0] = 1;
  for (i = 1; i <= N; ++i) {
    if (!M) {
      if (!cnt) cnt = a[i - 1] + 1;
      a[i] = a[i - 1] + cnt;
    } else if (M >= (i - 1) / 2)
      a[i] = i, M -= (i - 1) / 2;
    else {
      a[i] = 2 * i - 2 * M - 1, M = 0;
    }
  }
  if (M)
    puts("-1");
  else {
    for (i = 1; i <= N; ++i) printf("%d ", a[i]);
  }
  return 0;
}
