#include <bits/stdc++.h>
using namespace std;
void boost() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int main(void) {
  boost();
  long long n, m, i;
  cin >> n >> m;
  long long temp;
  if (n % 2 == 0) {
    temp = (n / 2) * ((n / 2) - 1);
  } else {
    temp = (n / 2) * (n / 2);
  }
  long long temp1, t1, t2 = 1e8;
  if (m > temp)
    cout << -1;
  else {
    for (i = 0; i <= n; i++) {
      if (i % 2 == 0) {
        temp1 = (i / 2) * ((i / 2) - 1);
      } else {
        temp1 = (i / 2) * (i / 2);
      }
      if (m <= temp1) {
        t1 = i;
        break;
      }
    }
    if (m == temp1) {
      for (__typeof(t1) i = (0) - ((0) > (t1)); i != (t1) - ((0) > (t1));
           i += 1 - 2 * ((0) > (t1))) {
        cout << (i + 1) << " ";
      }
      for (__typeof(n - t1) i = (0) - ((0) > (n - t1));
           i != (n - t1) - ((0) > (n - t1)); i += 1 - 2 * ((0) > (n - t1))) {
        cout << t2 << " ";
        t2 = t2 + 1e4;
      }
    } else {
      t1--;
      for (__typeof(t1) i = (0) - ((0) > (t1)); i != (t1) - ((0) > (t1));
           i += 1 - 2 * ((0) > (t1))) {
        cout << (i + 1) << " ";
      }
      if (t1 % 2 == 0) {
        temp1 = (t1 / 2) * ((t1 / 2) - 1);
      } else {
        temp1 = (t1 / 2) * (t1 / 2);
      }
      long long temp2 = m - temp1;
      cout << (t1 + (t1 - (temp2 * 2 - 1)));
      cout << " ";
      t1++;
      for (__typeof(n - t1) i = (0) - ((0) > (n - t1));
           i != (n - t1) - ((0) > (n - t1)); i += 1 - 2 * ((0) > (n - t1))) {
        cout << t2 << " ";
        t2 = t2 + 1e4;
      }
    }
  }
}
