fun main(args: Array<String>) {
    val input = readLine()?.split(" ") ?: return
    val r = input[0].toInt()
    val d = input[1].toInt()
    val i = input[2].toInt()

    val x = arrayListOf<Int>()
    x.add(i)
    for (index in 1..10) {
        println((x[index - 1] * r) - d)
        x.add(x[index - 1] * r - d)
    }
}