fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val ans = MutableList(n + 1) { 0 }
    for (x in 1L..100L) {
        for (y in 1L..100L) {
            for (z in 1L..100L) {
                val p = x * x + y * y + z * z + x * y + y * z + z * x
                if (p <= n) {
                    ans[p.toInt()]++
                }
            }
        }
    }
    for (i in 0 until n) {
        println(ans[i + 1])
    }
}