
long solve(long n){
	long cnt;
	foreach(x; 1..n/3){
		foreach(y; 1..n/3){
			foreach(z; 1..n/3){
				if(x^^2 + y^^2 + z^^2 + x*y + y*z + z*x == n)cnt++;
			}
		}
	}
	return cnt;
}

void main(){
	long n = _scan!long();
	foreach(i; 1..n+1){
		solve(i).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;
}
