protocol InitFromString {
    init?(_ str: String)
}

extension Int: InitFromString {}
extension Int8: InitFromString {}
extension Int16: InitFromString {}
extension Int32: InitFromString {}
extension Int64: InitFromString {}
extension String: InitFromString {}

func input<T: InitFromString>() -> [T] {
    readLine()!.split(separator: " ").map(String.init).compactMap(T.init)
}

func fx(x: Int, y: Int, z: Int) -> Int {
    x * x +  y * y + z * z + x * y + y * z +  z * x
}

let n: Int = input()[0]

import Foundation
var scores = (0..<n).map { _ in 0 }

(1...Int(sqrt(Double(n)))).forEach { (i) in
    (1...Int(sqrt(Double(n)))).forEach { (j) in
        (1...Int(sqrt(Double(n)))).forEach { (k) in
            let result = fx(x: i, y: j, z: k)
            guard result < n else {
                return
            }
            scores[result] += 1
        }
    }
}
scores.forEach {
    print($0)
}

