import kotlin.math.*
import java.util.*

const val MOD = 1_000_000_007L

fun readI() = readLine()!!.toInt()
fun readL() = readLine()!!.toLong()
fun readD() = readLine()!!.toDouble()
fun readIs() = readLine()!!.split(' ').map(String::toInt)
fun readLs() = readLine()!!.split(' ').map(String::toLong)
fun readDs() = readLine()!!.split(' ').map(String::toDouble)

fun main(args: Array<String>) {
  val n = readI()
  val ans = IntArray(n)
  var x = 1
  while (x * x <= n) {
    val x2 = x * x
    var y = 1
    while (x2 + y * y <= n) {
      val y2 = y * y
      var z = 1
      while (x2 + y2 + z * z <= n) {
        val z2 = z * z
        val w = x2 + y2 + z2 + x * y + y * z + z * x
        if (w <= n) {
          ans[w - 1]++
        }
        z++
      }
      y++
    }
    x++
  }
  ans.forEach(::println)
}
