n = gets.to_i
a = Array.new(n+1,0)

(1..100).each do |x|
(1..100).each do |y|
(1..100).each do |z|
  p = x**2 + y**2 + z**2 + x*y + y*z + z*x
  next if p>n
  a[p] += 1
end
end
end

(1..n).each do |i|
  puts a[i]
end
