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

for i in range(10):

  temp = r*x - d

  print(temp)

  x = temp
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()))
for i in range(10):
    temp = r * x - d
    print(temp)
    x = temp

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

-    temp = r * x - d -    print(temp) -    x = temp +    x = r * x - d +    print(x)