n=gets.to_i
a=Array.new(n,0)
m=Math.sqrt(n).ceil

m.times do |i|
  i+=1
  m.times do |j|
    j+=1
    m.times do |k|
      k+=1
      
      b=i*i+j*j+k*k+i*j+i*k+j*k-1
      [i,j,k]
     
   
      if b<n
       a[b]+=1
      end
    end
  end
end
a.map {|n| puts n}