n = gets.chomp.to_i

cnt = Array.new(n+1,0)
max = Math.sqrt(n)
(1..max).each do |x|
    (1..max).each do |y|
        (1..max).each do |z|
            ans = x**2 + y**2 + z**2 + x*y + y*z + z*x
            if ans <= n
                cnt[ans] += 1
            end
        end
    end
end

(1..n).each do |i|
    #puts "N=#{i}のとき"
    puts cnt[i]
end