N=gets.to_i
xyz=[*1..Math.sqrt(N)].repeated_combination(3).to_a
N.times do |i|
  res=0
  xyz.each do |j|
    x=j[0]
    y=j[1]
    z=j[2]
    if x**2+y**2+z**2+x*y+y*z+z*x == (i+1)
      res += case j.uniq.size
       when 1
        1
       when 2
        3
       when 3
        6
      end
    end
  end
  p res
end
