import java.util.*

fun main(args: Array<String>) {
    val pw = java.io.PrintWriter(System.out)
    Problem.solve(Scanner(System.`in`), pw)
    pw.flush()
}

object Problem {
    fun solve(sc: Scanner, pw: java.io.PrintWriter) {
        val N = sc.next().toInt()
        val A = LongArray(N)
        val m = 10000
        for (x in 1..m) for (y in 1..m) {
            val n = x * x + y * y + x * y
            var z = 0
            do {
                z++
                val nn = n + z * z + y * z + z * x
                if (nn in 1..N) {
                    A[nn - 1]++
                }
            } while (nn < N)
        }
        for (i in 0 until N) {
            pw.println(A[i])
        }
    }
}
