let n = Int(readLine()!)!
func f(_ n: Int) -> Int {
    var c = 0
    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 {
                guard x*x+y*(x+y)+z*(x+y+z) <= n else { break }
                if x*x+y*(x+y)+z*(x+y+z) == n {
                    c += 1
                }
            }
        }
    }
    return c
}
for i in 1...n {
    print(f(i))
}
