#pragma GCC target("avx") #pragma GCC optimize("unroll-loops") #include using namespace std; using uint = uint32_t; int main(){ uint n, m; cin >> n >> m; uint ans[1600001] = {}; for(uint a = 0, x1 = 0; a <= m; a++, x1 += (a << 1) - 1){ for(uint b = 0, x2 = x1, y2 = a; b <= m && x2 <= n; b++, x2 += a + (b << 1) - 1, y2++){ for(uint c = 0, x3 = x2, y3 = y2; c <= m && x3 <= n; c++, x3 += y2 + (c << 1) - 1, y3++){ for(uint d = 0, x4 = x3; d <= m && x4 <= n; d++, x4 += y3 + (d << 1) - 1){ ans[x4]++; } } } } for(uint i = 0; i <= n; i++) printf("%u\n", ans[i]); }