#define _USE_MATH_DEFINES #include using namespace std; //template #define rep(i,a,b) for(int i=(int)(a);i<(int)(b);i++) #define ALL(v) (v).begin(),(v).end() typedef long long int ll; const int inf = 0x3fffffff; const ll INF = 0x1fffffffffffffff; const double eps=1e-12; templateinline bool chmax(T& a,T b){if(ainline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;} //end int main(){ int n,m; cin>>n>>m; vector res(n+1); rep(a,0,m+1)rep(b,0,a+1)rep(c,0,b+1)rep(d,0,c+1){ int v=a*a+a*b+a*c+a*d+b*b+b*c+b*d+c*c+c*d+d*d; if(v>n)continue; if(a==b){ if(b==c){ if(c==d)res[v]++; else res[v]+=4; } else{ if(c==d)res[v]+=6; else res[v]+=12; } } else{ if(b==c){ if(c==d)res[v]+=4; else res[v]+=12; } else{ if(c==d)res[v]+=12; else res[v]+=24; } } } rep(i,0,n+1)cout<