
fun main(args:Array<String>) {
    val (r,D,x) = readLine()!!.split(" ").map(String::toLong)
    var new_x = x
    
    for (i in 1..10) {
        new_x = new_x * r - D
        println(new_x)
    }
}
 