n = gets.to_i

ans = Array.new(n+1, 0)
for x in 1..98
  for y in 1..98
    for z in 1..98
      rslt = x**2 + y**2 + z**2 + x*y + y*z + z*x
      if rslt <= n
        ans[rslt] += 1
      end
    end
  end
end

for i in 1..n
  puts ans[i]
end