s = input().split()

r = int(s[0])
d = int(s[1])
x_i = int(s[2])

for i in range(10):
    x_i = r * x_i - d
    print(x_i) s = input().split() s input().split() ().split () input split r = int(s[0]) r int(s[0]) int s[0] s 0 d = int(s[1]) d int(s[1]) int s[1] s 1 x_i = int(s[2]) x_i int(s[2]) int s[2] s 2 for i in range(10):
    x_i = r * x_i - d
    print(x_i) i range(10) range 10 x_i = r * x_i - d x_i r * x_i - d r * x_i r x_i d print(x_i) print x_i x_i = int(s[2]) int(s[2]) x_i x_i = r * x_i - d r * x_i - d x_i d = int(s[1]) int(s[1]) d s = input().split() input().split() s r = int(s[0]) int(s[0]) r
s = input().split()

r = int(s[0])
d = int(s[1])
x_i = int(s[2])

for i in range(10):
    x_i = r * x_i - d
    print(x_i)