import Foundation

extension String {
    func split(by separator: String) -> [String] {
        return self.componentsSeparatedByString(separator)
    }
}

func readIntSplit(by separator: String) -> [Int] {
    return readLine()!.split(by: separator).map{Int($0)!}
}


/************** main *****************/

let rdx = readIntSplit(by: " ")
var (r, d, x) = (rdx[0], rdx[1], rdx[2])
for i in 0 ..< 10 {
    x = r * x - d
    print(x)
}
