fun main(args: Array<String>) {
    val (r, D, x2000) = readLine()!!.split(" ").map(String::toInt)
    val n = IntArray(11)
    n[0] = x2000
    for(i in 1 until n.size){
        n[i] = n[i-1] * r - D
        println(n[i])
    }
}