number = input().split(" ")
r = int(number[0])
D = int(number[1])
x = int(number[2])

for i in range(1,11):
    x = r*x - D
    print(x) number = input().split(" ") number input().split(" ") ().split () input split " " r = int(number[0]) r int(number[0]) int number[0] number 0 D = int(number[1]) D int(number[1]) int number[1] number 1 x = int(number[2]) x int(number[2]) int number[2] number 2 for i in range(1,11):
    x = r*x - D
    print(x) i range(1,11) range 1 11 x = r*x - D x r*x - D r*x r x D print(x) print x number = input().split(" ") input().split(" ") number D = int(number[1]) int(number[1]) D x = r*x - D r*x - D x r = int(number[0]) int(number[0]) r x = int(number[2]) int(number[2]) x
number = input().split(" ")
r = int(number[0])
D = int(number[1])
x = int(number[2])

for i in range(1,11):
    x = r*x - D
    print(x)