#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
using ii = pair<ll, ll>;
int main() {
  cin.tie(nullptr);
  cout.tie(nullptr);
  ios::sync_with_stdio(false);
  ll n, m;
  cin >> n >> m;
  ll nn = n - 2;
  ll n1 = nn / 2;
  ll n2 = nn - n1;
  ll sm = (n1 + 1) * n1 / 2 + (n2 + 1) * n2 / 2;
  if (m == 0) {
    ll fff = ll(1e9) - 5050 * 5050;
    for (int i = (0); i < (n); i++) {
      cout << fff + i * 5050 << " ";
    }
    cout << endl;
    return 0;
  }
  if (sm >= m) {
    if (m == 1) {
      cout << 1 << " " << 2 << " " << 3 << " ";
      n -= 3;
      ll fff = ll(1e9) - 5050 * 5050;
      for (int i = (0); i < (n); i++) {
        cout << fff + i * 5050 << " ";
      }
      cout << endl;
      return 0;
    }
    ll f1 = 1, f2 = 1;
    sm = 0;
    for (int i = (0); i < (n - 2); i++) {
      if (sm + f1 >= m) {
        f2 = i - 1;
        break;
      }
      sm += f1;
      if (i % 2 == 1) f1++;
    }
    ll last;
    ll ff1 = f1 - (m - sm);
    if (f2 % 2 == 0) {
      last = 2 * ff1 + 1;
    } else {
      last = 2 * ff1;
      if (ff1 == 0) last = 1;
    }
    cout << 1 << " " << 2 << " ";
    for (int i = (0); i < (f2 + 1); i++) {
      cout << i + 3 << " ";
      if (i == f2) {
        cout << i + 3 + last << " ";
      }
    }
    ll kk = f2 + 4;
    kk = n - kk;
    ll fff = ll(1e9) - 5050 * 5050;
    for (int i = (0); i < (kk); i++) {
      cout << fff + i * 5050 << " ";
    }
    cout << endl;
  } else {
    cout << -1 << endl;
  }
  return 0;
}
