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