require 'pp'

n = gets.to_i
comb = [
    [0,0,0],[0,0,1],[0,1,0],[0,1,1],
    [1,0,0],[1,0,1],[1,1,0],[1,1,1],
]

memo = Hash.new(0)

1.upto(100) do |x|
    1.upto(100) do |y|
        1.upto(100) do |z|
            f = x ** 2 + y ** 2 + z ** 2 + x * y + y * z + z * x
            memo[f] += 1
        end
    end
end

1.upto(n) do |i|
    puts memo[i]
end
