fun main() {
    var n = readLine()!!.toInt()

    var d = Array(10050){0}

    for (i in 1..105){
        for(j in 1..105) {
            for(k in 1..105) {
                if(i * i + j * j + k * k + i * j + j * k + k * i < 10050) {
                    d[i * i + j * j + k * k + i * j + j * k + k * i]++
                }
            }
        }
    }
    for(i in 1..n) {
        println(d[i])
    }
}