r,d,x= input().split()
r = int(r)
d =int(d)
x =int(x)
i=1
while i<11:
  i+=1
  x = r*x - d
  print(x) r,d,x= input().split() r input().split() ().split () input split d x r = int(r) r int(r) int r d =int(d) d int(d) int d x =int(x) x int(x) int x i=1 i 1 while i<11:
  i+=1
  x = r*x - d
  print(x) i<11 i 11 i+=1 i 1 x = r*x - d x r*x - d r*x r x d print(x) print x d,x= input().split() input().split() d r = int(r) int(r) r r,d,x= input().split() input().split() r i=1 1 i d =int(d) int(d) d x= input().split() input().split() x x =int(x) int(x) x i+=1 1 i x = r*x - d r*x - d x
r,d,x= input().split()
r = int(r)
d =int(d)
x =int(x)
i=1
while i<11:
  i+=1
  x = r*x - d
  print(x)