fun main(args: Array<String>): Unit {
    val sc = java.util.Scanner(System.`in`)
    val r = sc.nextInt()
    val d = sc.nextInt()
    val x2000 = sc.nextInt()

    var x = x2000
    (1..10).forEach {
        x = r * x - d
        println(x)
    }
}