import Foundation
 
let input_line = readLine()!
 
let split = input_line.componentsSeparatedByString(" ") //components(separatedBy:)と実質同じ
let r = Int(split[0])!
let D = Int(split[1])!
var x2000 = Int(split[2])!

func calculateWeight(year: Int) -> Int {
	var oneYearAgoWeight = 0
	var weight = 0
	if year > 2001 {
      	oneYearAgoWeight += calculateWeight(year - 1)
  		weight = r * oneYearAgoWeight - D
	} else if year == 2001 {
    	weight = r * x2000 - D
    } else {
    	print("Error")
    }
	return weight
}

var i = 2001
while i < 2011 { 
	print(calculateWeight(i))
	i += 1
}