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

xi = 0

for i in range(10):

  if i ==0:

    xi = r * x - d

  else:

    xi = r * xi - d

  print(xi)

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

for i in range(10):

  x = r * x - d

  print(x)

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

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

-xi = 0 -    if i == 0: -        xi = r * x - d -    else: -        xi = r * xi - d -    print(xi) +    x = r * x - d +    print(x)