let N = Int(readLine()!)!
var f = Array(repeating: 0, count: 10000)
for x in 1...100 {
    for y in 1...100 {
        for z in 1...100 {
            guard x*x + y*y + z*z + x*y + y*z + z*x <= N else {break}
            f[x*x + y*y + z*z + x*y + y*z + z*x] += 1
        }
    }
}
for n in 1...N {
    print(f[n])
}
