import kotlin.math.sqrt
fun main() {

// 数値
    val n = readLine()!!.toInt()

    val m = sqrt(n.toDouble()).toInt()
    var an = 0
    val ary = Array(n){0}
    for (i in 1..100) {
        for (j in 1..100) {
            for (k in 1..100) {
                val sum = i * i + j * j + k * k + i * j + j * k + k * i
                if (sum<=n){
                    ary[sum-1]+=1
                }
            }
        }
    }
    for (i in ary) {
        println(i)
    }
}