N = gets.to_i

F = lambda{|x,y,z| x*x+y*y+z*z+x*y+y*z+z*x }
Fn = [0]*(N+1)

x=y=z=1
until N < n=F[x,x,x]
	Fn[n] += 1
	z = x+1
	until N < n=F[x,x,z]
		Fn[n] += 3
		z += 1
	end
	y = x+1
	until N < n=F[x,y,y]
		Fn[n] += 3
		z = y+1
		until N < n=F[x,y,z]
			Fn[n] += 6
			z += 1
		end
		y += 1
	end
	x += 1
end

puts Fn.drop 1
