fun main() {
    val n = readLine()!!.toInt()
    val resultMap = IntArray(n + 1) { 0 }

    for (a in 1..n) {
        if (a * a > n) continue
        for (b in 1..n) {
            if (a * a + b * b + a * b > n) continue

            (1..n).forEach { c ->
                val count = a * a + b * b + c * c + a * b + b * c + c * a
                if (count <= n) {
                    resultMap[count] += 1
                }
            }
        }
    }

    resultMap.takeLast(n).forEach { println(it) }
}