r,d,x = map(int,input().split())
def weight(r,d,x):
  x_next = r*x-d
  return x_next
for y in range(10):
  x = weight(r,d,x)
  print(x) r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x def weight(r,d,x):
  x_next = r*x-d
  return x_next weight x_next = r*x-d x_next r*x-d r*x r x d return x_next x_next r r d d x x for y in range(10):
  x = weight(r,d,x)
  print(x) y range(10) range 10 x = weight(r,d,x) x weight(r,d,x) weight r d x print(x) print x x = weight(r,d,x) weight(r,d,x) x def weight(r,d,x):
  x_next = r*x-d
  return x_next def weight(r,d,x):
  x_next = r*x-d
  return x_next weight r,d,x = map(int,input().split()) map(int,input().split()) r d,x = map(int,input().split()) map(int,input().split()) d x = map(int,input().split()) map(int,input().split()) x
r,d,x = map(int,input().split())
def weight(r,d,x):
  x_next = r*x-d
  return x_next
for y in range(10):
  x = weight(r,d,x)
  print(x)