r, d, x = list(map(int, input().split()))

result = 0

rx = 0

for i in range(10):

    if i == 0:

        result = r * x - d

    else:

        result = r * result - d

    print(result)
r,D,a=list(map(int,input().split()))

for i in range(10):

   a=r*a-D

   print(a)
r, d, x = list(map(int, input().split()))
result = 0
rx = 0
for i in range(10):
    if i == 0:
        result = r * x - d
    else:
        result = r * result - d
    print(result)

r, D, a = list(map(int, input().split()))
for i in range(10):
    a = r * a - D
    print(a)

-r, d, x = list(map(int, input().split())) -result = 0 -rx = 0 +r, D, a = list(map(int, input().split())) -    if i == 0: -        result = r * x - d -    else: -        result = r * result - d -    print(result) +    a = r * a - D +    print(a)