
long[long] solve(long n){
	long[long] dic;
	for(long x=1; x^^2<=n; x++){
		for(long y=1; x^^2+y^^2<=n; y++){
			for(long z=1; x^^2+y^^2+z^^2<=n; z++){
				dic[x^^2+y^^2+z^^2 + x*y+y*z+z*x]++;
			}
		}
	}
	return dic;
}

void main(){
	long n = _scan!long();
	auto ans = solve(n);
	foreach(i; 1..n+1){
		ans.get(i, 0).writeln();
	}
}

import std.stdio, std.conv, std.algorithm, std.numeric, std.string, std.math;

// 1要素のみの入力
T _scan(T= int)(){
	return to!(T)( readln().chomp() );
}

// 1行に同一型の複数入力
T[] _scanln(T = int)(){
	T[] ln;
	foreach(string elm; readln().chomp().split()){
		ln ~= elm.to!T();
	}
	return ln;
}
