#include <bits/stdc++.h>
using namespace std;
int ANS[1000005];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  int NUMB = 0;
  while (m) {
    if ((NUMB >> 1) > m || n == NUMB) {
      break;
    }
    ANS[++NUMB] = NUMB;
    m -= (NUMB - 1) / 2;
  }
  if (n == NUMB && m) {
    printf("-1\n");
    return 0;
  }
  if (m) {
    ANS[NUMB + 1] = NUMB * 2 - m * 2 + 1;
    NUMB++;
  }
  ANS[n + 1] = 1000000000;
  for (int i = n; i > NUMB; i--) {
    ANS[i] = ANS[i + 1] - ANS[NUMB] - 2;
  }
  for (int i = 1; i <= n; i++) {
    printf("%d ", ANS[i]);
  }
  printf("\n");
  return 0;
}
