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