N = gets.to_i

ans = [0]*N

1.upto(N) do |x|
    x2 = x*x
    break if x2>=N
    x.upto(N) do |y|
        y2 = y*y
        break if y2>=N

        xy_same = x==y

        y.upto(N) do |z|
            a = x2+y2+z*z + x*y + y*z + z*x
            break if a > N
            m = 6
            if xy_same then x != z
                m = x==z ? 1 : 3
            elsif x==z || y==z then 
                m = 3
            end
            ans[a-1] += m
        end
    end
end

ans.each do |a|
    p a
end