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