#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 7;
const int M = 4e5;
const int lim = 1e8;
const int p = 1e9 + 7;
const int inf = 0x3f3f3f3f;
int a[5010];
int main() {
  int n, m, num = 0, k = 0;
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= 2; i++) a[i] = i;
  for (int i = 3; i <= n; i++) {
    if (num == m) {
      a[i] = lim + k;
      k += 5e3;
      continue;
    }
    if (num + (i - 1) / 2 <= m) {
      a[i] = i;
      num += (i - 1) / 2;
    } else {
      k = m - num;
      num = m;
      a[i] = i - 1 + i - 2 * k;
    }
  }
  if (num < m)
    printf("-1\n");
  else {
    for (int i = 1; i <= n; i++) printf("%d%c", a[i], i == n ? '\n' : ' ');
  }
  return 0;
}
