n = gets.to_i
array = Array.new(1001,0)

for x in 1..100 do
  for y in 1..100 do
    for z in 1..100 do
      ans = x**2 + y**2 + z**2 + x*y + y*z + z*x
      if ans <= 1000
        array[ans] += 1
      elsif n < ans
        break
      end
    end
  end
end

for i in 1..n do
  puts array[i]
end