n = io.read("*n")
t = {}
for i = 1, n do
  t[i] = 0
end
for x = 1, 100 do
  for y = 1, 100 do
    for z = 1, 100 do
      c = x * x + y * y + z * z
        + x * y + y * z + z * x
      if c <= n then
        t[c] = t[c] + 1
      end
    end
  end
end
print(table.concat(t, "\n"))
