#include <bits/stdc++.h>
using namespace std;
const long long N = 5e3 + 7;
long long n, m;
long long a[N];
int32_t main() {
  cin >> n >> m;
  long long res = 0;
  for (long long i = 1; i <= n; i++) a[i] = i;
  for (long long i = 1; i <= n; i++)
    for (long long j = i + 1; j <= n; j++)
      if (i + j <= n) res++;
  if (m > res) {
    cout << -1;
    return 0;
  }
  long long pnt = n, cnt = 1;
  while (res > m) {
    while (res > m && a[pnt] - a[pnt - 1] < pnt - 1) {
      a[pnt]++;
      if (a[pnt] % 2 == 0) res--;
    }
    if (res == m) break;
    a[pnt] = 1e9 - cnt * N;
    pnt--;
    cnt++;
  }
  for (long long i = 1; i <= n; i++) cout << a[i] << " ";
  return 0;
}
