#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using u64 = uint64_t;
using u32 = uint32_t;
using pi = pair<int, int>;
using pl = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vvi = vector<vi>;
using vpi = vector<pi>;
static constexpr int INF = (int)1e9 + 5;
static constexpr ll INFL = (ll)1e18 + 5;
static mt19937 rng((u32)chrono::duration_cast<chrono::nanoseconds>(
                       chrono::high_resolution_clock::now().time_since_epoch())
                       .count());
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, m;
  cin >> n >> m;
  int k = 2;
  while (k < n && k / 2 <= m) m -= k / 2, ++k;
  if (k >= n && m) cout << "-1\n", exit(0);
  if (n == 1) cout << "1\n", exit(0);
  for (int i = 1; i <= k; ++i) cout << i << ' ', --n;
  if (m) cout << (2 * k - 2 * m) << ' ', --n;
  for (int i = 0; i < n; ++i) cout << (5001 * 5001 + i * 5001) << ' ';
  cout << '\n';
  return 0;
}
