#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main() {
  int i, j, k;
  int n, t, m;
  cin >> n >> m;
  a[1] = 1;
  a[2] = 2;
  for (i = 3; i <= n; i++) {
    if ((i - 1) / 2 <= m) {
      a[i] = i;
      m -= (i - 1) / 2;
    } else {
      a[i] = i - 1 + i - 1 - 2 * m;
      m = 0;
      break;
    }
  }
  if (m)
    puts("-1");
  else {
    for (j = n; i < j; j--) {
      a[j] = 1000000000 - (n - j) * 10000;
    }
    for (i = 1; i <= n; i++) {
      printf("%d ", a[i]);
    }
  }
  return 0;
}
