N = $stdin.read.to_i
counts = Array.new(N) { 0 }
1.upto(N) {|x|
  x2 = x * x
  break if N < x2 + 5
  2.upto(N) {|y|
    y2 = y * y
    xy = x * y
    break if N < x2 + y2 + xy + 3
    next if x == y
    3.upto(N) {|z|
      next if x == z or y == z
      n = x * x + y * y + z * z + x * y + y * z + z * x
      counts[n - 1] += 3 if n <= N
    }
  }
}

1.upto(N) {|x|
  x2 = x * x
  break if N < 3 * x2 + 3
  1.upto(N) {|z|
    next if x == z
    n = 3 * x2 + z * z + 2 * x * z
    counts[n - 1] += 3 if n <= N
  }
}

1.upto(N) {|x|
  n = 6 * x * x
  counts[n - 1] += 1 if n <= N
}

puts counts.join("\n")
