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