import kotlin.math.sqrt

fun main() {
    val n = readLine()!!.toInt()
    val count = Array(n + 1) { 0 }
    for (x in 1..sqrt(n.toFloat()).toInt()) {
        for (y in 1..sqrt(n.toFloat()).toInt()) {
            for (z in 1..sqrt(n.toFloat()).toInt()) {
                val value = x * x + y * y + z * z + x * y + y * z + z * x
                if (value < n + 1) {
                    count[value] += 1
                }
            }
        }
    }
    count.drop(1).forEach { println(it) }
}