fun main(args: Array<String>) {

    val (r, D, x2000) = readLine()!!.split(" ").map { Integer.parseInt(it) }
    val resultList = mutableListOf<Int>()
    resultList.add(x2000)
    for (i in 0 until 10) {
        val next = r * resultList.last() - D
        println(next)
        resultList.add(next)
    }
}