import Foundation

let input_N = Int(readLine()!)!
var counts = [Int](repeating: 0, count: input_N)
let max = Int(sqrt(Double(input_N - 5)))

for it in 1...input_N {
    // x >= y >= z
    for x in 1...max {
        for y in 1...x {
            for z in 1...y {
                if x*x + y*y + z*z + x*y + y*z + z*x == it {
                    if x == y && y == z {
                        counts[it-1] += 1
                    } else if x == y || y == z {
                        counts[it-1] += 3
                    } else {
                        counts[it-1] += 6
                    }
                }
            }
        }
    }
}

counts.forEach {print($0)}
