let N = Int(readLine()!)!

func check (_ n:Int) -> Int {
    var count = 0
    for x in 1 ... n {
        if x*x >= n {
            break
        }
        for y in 1 ... n {
            if y*y > n || x*y > n{
                break
            }
            for z in 1 ... n {
                if z*z > n || y*z > n || z*x > n {
                    break
                }
                if x*x+y*y+z*z+x*y+y*z+z*x == n {
                    count += 1
                }
            }
        }
    }
    return count
}

for i in 1 ... N {
    print(check(i))
}