func main() {
    let N = Int(readLine()!)!
    
    let sqN = N
    

    for n in (1...N) {
        var c:Int = 0
        for x in (1...sqN) {
            for y in (1...sqN) {
                for z in (1...sqN) {
                    if(x*x + y*y + z*z + x*y + y*z + z*x == n) {
                       c += 1
                    }
                }
            }
        }
        print(c)
    }
    
}

main()
