MM = input().split()
r = int(MM[0])
D = int(MM[1])
x = int(MM[2])
for i in range(10):
  a = r*x -D
  print(a)
  x = a MM = input().split() MM input().split() ().split () input split r = int(MM[0]) r int(MM[0]) int MM[0] MM 0 D = int(MM[1]) D int(MM[1]) int MM[1] MM 1 x = int(MM[2]) x int(MM[2]) int MM[2] MM 2 for i in range(10):
  a = r*x -D
  print(a)
  x = a i range(10) range 10 a = r*x -D a r*x -D r*x r x D print(a) print a x = a x a MM = input().split() input().split() MM a = r*x -D r*x -D a x = a a x r = int(MM[0]) int(MM[0]) r D = int(MM[1]) int(MM[1]) D x = int(MM[2]) int(MM[2]) x
MM = input().split()
r = int(MM[0])
D = int(MM[1])
x = int(MM[2])
for i in range(10):
  a = r*x -D
  print(a)
  x = a