/* power by Solo_Dance */ #include<bits/stdc++.h> #define eps 1e-8 usingnamespacestd; #define ms(a, b) memset((a), (b), sizeof(a)) typedeflonglong ll; typedefunsignedlonglong ull; typedef pair<int, int> P; constint N = 1e5 + 5; constint M = 1e6 + 5; constint INF = 0x3f3f3f3f; const ll ll_max = 0x3f3f3f3f3f3f3f3f; constint mod = 1e9 + 7;
inline ll read(){ ll res = 0;bool f = 0;char ch = getchar(); while (ch < '0' || ch > '9') {if (ch == '-') f = 1;ch = getchar();} while (ch <= '9' && ch >= '0') {res = (res << 3) + (res << 1) + ch - '0';ch = getchar();} return f ? (~res + 1) : res; } intmain(){ int n = read(), m = read(); int k = 0, sum = 0; while(k < n && sum + k / 2 <= m) sum += k / 2, k++; if (k == n && sum < m) returnputs("-1"), 0; for (int i = 1; i <= k; ++i) printf("%d ", i); if (k == n) return0; printf("%d ", k - 2 * (m - sum) + 1 + k); for (int i = k + 2; i <= n; ++i) printf("%d ", int(1e8 + (i - k - 2) * 1e4));