fun main(args : Array<String>) {
    val (r, D, x2000) = readLine()!!.split(" ").map { it.toInt() }

    val x = Array(11, { 0 })
    x[0] = x2000
    (1..10).forEach {
        x[it] = r * x[it-1] - D
        println(x[it])
    }
}