MAX = 10**4+1
N = gets.to_i

ans = Array.new(MAX, 0)

for x in 1..100
    for y in 1..100
        for z in 1..100
            n = x*x + y*y + z*z + x*y + y*z + z*x
            if n < MAX
                ans[n] += 1
            end
        end
    end
end
            
for i in 1..N
    puts ans[i]
end
