fun main(){
    val n = readLine()!!.split(" ")[0].toInt()
    val count = MutableList(n + 1){ 0 }
    for (x in 1 until 100){
        for (y in 1 until 100){
            for (z in 1 until 100){
                val ans = x * x + y * y + z * z + x * y + y * z + z * x
                if (ans <= n){
                    count[ans]++
                }
            }
        }
    }
    for (i in 0 until n){
        println(count[i + 1])
    }
}