func readInt() -> Int {
    return Int(readLine()!)!
}

func result(x: Int, y: Int, z: Int) -> Int {
    return x*x + y*y + z*z + z*y + x*y + x*z
}

func mainC() {
    let N = readInt()

    var score = (1...N).map { _ in return 0 }

    let max = 100
    for i in 1...max {
        for j in 1...max {
            for k in 1...max {
                let res = result(x: i, y: j, z: k)
                if res < score.count {
                    score[res] += 1
                }
            }
        }
    }

    for n in 0..<N {
        print(score[n])
    }

}

mainC()