import kotlin.math.sqrt

fun main() {
  val N = readInt()

  val f = Array(N + 1) { 0 }

  val lim = sqrt(N.toDouble()).toInt() + 1
  for (x in 1..lim) {
    for (y in 1..lim) {
      for (z in 1..lim) {
        val v = x * x + y * y + z * z + x * y + y * z + z * x
        if (v <= N) f[v]++
      }
    }
  }

  for (i in 1..N) {
    println(f[i])
  }
}

fun readString() = readLine()!!
fun readStrings() = readString().split(" ")
fun readInt() = readString().toInt()
fun readLong() = readString().toLong()
fun readInts() = readStrings().map { it.toInt() }
fun readLongs() = readStrings().map { it.toLong() }
