cnt = 0
def f(n,r,d):
  global cnt
  n = r*n-d
  print(n)
  cnt += 1
  if cnt < 10:
  	f(n,r,d)
r,d,x = map(int,input().split())
f(x,r,d) cnt = 0 cnt 0 def f(n,r,d):
  global cnt
  n = r*n-d
  print(n)
  cnt += 1
  if cnt < 10:
  	f(n,r,d) f global cnt n = r*n-d n r*n-d r*n r n d print(n) print n cnt += 1 cnt 1 if cnt < 10:
  	f(n,r,d) cnt < 10 cnt 10 f(n,r,d) f n r d n n r r d d r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x f(x,r,d) f x r d def f(n,r,d):
  global cnt
  n = r*n-d
  print(n)
  cnt += 1
  if cnt < 10:
  	f(n,r,d) def f(n,r,d):
  global cnt
  n = r*n-d
  print(n)
  cnt += 1
  if cnt < 10:
  	f(n,r,d) f r,d,x = map(int,input().split()) map(int,input().split()) r x = map(int,input().split()) map(int,input().split()) x cnt = 0 0 cnt d,x = map(int,input().split()) map(int,input().split()) d
cnt = 0
def f(n,r,d):
  global cnt
  n = r*n-d
  print(n)
  cnt += 1
  if cnt < 10:
  	f(n,r,d)
r,d,x = map(int,input().split())
f(x,r,d)