#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long N = 1e8;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n, m;
  cin >> n >> m;
  long long c = 0;
  for (long long i = 1; i <= n; i++) {
    c += (i - 1) / 2;
    if (c >= m) {
      for (long long j = 1; j < i; j++) {
        cout << j << " ";
      }
      cout << i + 2 * (c - m) << " ";
      for (long long j = i + 1; j <= n; j++) {
        cout << N + 1 + (10000) * j << " ";
      }
      return 0;
    }
  }
  cout << "-1";
  return 0;
}
