#include <bits/stdc++.h>
const int inf = 0x3f3f3f3f;
using namespace std;
int n, m, a[5050];
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) {
    if (m == 0) {
      a[i] = 100000000 + 10000 * i;
    } else if ((i - 1) / 2 <= m) {
      a[i] = i;
      m -= (i - 1) / 2;
    } else {
      a[i] = i - 1 + i - m - m;
      m = 0;
    }
  }
  if (m)
    printf("-1\n");
  else {
    for (int i = 1; i <= n; i++) {
      printf("%d%c", a[i], i == n ? '\n' : ' ');
    }
  }
}
