val sz = 100
fun f(x:Int,y:Int,z:Int):Int {
    return x*x+y*y+z*z+x*y+y*z+z*x
}
fun main() {
    val n = readLine()!!.toInt()
    var ans = MutableList<Int>(n+1,{_ -> 0})
    for(x in 1..sz){
        for(y in 1..sz){
            for(z in 1..sz){
                val v = f(x,y,z)
                if(v in 1..n){
                    ans[v]++
                }
            }
        }
    }

    for(i in 1..n) {
        println(ans[i])
    }
}
