n = gets.to_i

h = Hash.new(0)
m = Math.sqrt(n).to_i+1
(1..m).each{|x|
  (1..m).each{|y|
    (1..m).each{|z|
      t = x**2+y**2+z**2+x*y+y*z+z*x
      if t <= n
        h[t] += 1
      end
    }
  }
}

(1..n).each{|i|
  p h[i]
}
