import Foundation

func readInts() -> [Int] {
    readLine()!.split(separator: " ").map { Int($0)! }
}

func w (n: Int)  -> Int{
    var count = 0
    for x in 1...99 {
        for y in 1...99 {
            for z in 1...99 {
                if x*x + y*y + z*z + x*y + y*z + z*x == n {
                    count += 1
                }
            }
        }
    }
    return count
}


func main() {
    let n = Int(readLine()!)!
    for i in 1...n{
        print(w(n:i))
    }
    
}
main()
