#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, m;
  cin >> n >> m;
  int num = 1e9;
  int cnt = 0;
  vector<int> a(n + 1);
  vector<int> b(n + 1);
  for (int i = 1; i <= n; ++i) {
    a[i] = i;
    b[i] = (i - 1) / 2;
    cnt += b[i];
  }
  if (cnt < m) {
    cout << -1 << endl;
  } else {
    int cur = n;
    while (cnt != m) {
      int tmp = cnt - m;
      assert(cur >= 1);
      if (b[cur] <= tmp) {
        a[cur] = num;
        num -= n;
        cnt -= b[cur];
        b[cur] = 0;
        --cur;
      } else {
        int nxt = b[cur] - tmp;
        a[cur] = cur - 1 - nxt * 2 + 1 + cur - 1;
        cnt = m;
        break;
      }
    }
    for (int i = 1; i <= n; ++i) {
      cout << a[i] << " ";
    }
    cout << endl;
  }
  return 0;
}
