//
//  main.swift
//  TestSpace for AtCoder
//
//  Created by Koichi Okai on 2020/06/25.
//  Copyright © 2020 Koichi Okai. All rights reserved.
//

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

func main() {
    let N = Int(readLine()!)!
    
    for n in (1...N) {
        var c:Int = 0
        for x in (1...N) {
            let X = x*x
            if(X > n) { break }
            for y in (1...(N-X)) {
                let Y = y*y
                let xy = x*y
                if(X+Y+xy > n) { break }
                for z in (1...(N-X-Y)) {
                    let Z = z*z
                    let yz = y*z
                    let zx = z*x
                    if(X+Y+Z+xy+yz+zx == n) {
                        c += 1
                    }
                }
            }
        }
        print(c)
    }
    
}

main()
