#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  ;
  int n, m;
  cin >> n >> m;
  long long dp[n + 1];
  dp[0] = 0;
  dp[1] = 0;
  dp[2] = 0;
  for (__typeof(n + 1) i = 3; i < n + 1; i++) {
    dp[i] = dp[i - 1] + (i / 2) - (1 - i % 2);
  }
  int ans[n + 1], bonus, border;
  if (m > dp[n]) return cout << "-1\n", 0;
  if (n == 1) return cout << "1\n", 0;
  if (n == 2) return cout << "1 2\n", 0;
  for (__typeof(n) i = n; i > 1; i--) {
    if (dp[i] <= m) {
      for (__typeof(i) j = 0; j < i; j++) {
        ans[j] = j + 1;
      }
      border = i;
      bonus = m - dp[i];
      break;
    }
  }
  int addition = border + (border - 2 * bonus + 1);
  ans[border] = addition;
  int lim = 999999999;
  for (__typeof(n) i = n; i > border; i--) {
    ans[i] = lim;
    lim = lim - addition - 1;
  }
  for (__typeof(n) i = 0; i < n; i++) {
    cout << ans[i] << " ";
  }
}
