n = gets.to_i
ba = Array.new(10000+1,0)
for i in 1..100
  for j in 1..100
    for k in 1..100
      s = i*i + j*j + k*k + i*j + j*k + k*i
      if s < 10001
        ba[s] += 1
      end
    end
  end
end
n.times do |i|
  puts ba[i+1]
end