#include<bits/stdc++.h>
using namespace std;
#define ll long long int
int main()
{
	ll l,r,i,j,k,n,m,x;
	cin>>n;
	ll ar[10005]={0};
	for(i=1;i<=100;i++)
	{
		for(j=1;j<=100;j++)
		{
			for(k=1;k<=100;k++)
			{
//				cout<<i<<' '<<j<<' '<<k<<endl;
				ll x=i*i+j*j+k*k+i*j+j*k+k*i;
				if(x<=n) ar[x]++;
			}
		}
	}
	for(i=1;i<=n;i++)
	cout<<ar[i]<<endl;
}