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

def f(i):
  if i==0:
    return x
  else:
    return r*f(i-1)-d

for i in range(10):
  print(r*f(i)-d) r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x def f(i):
  if i==0:
    return x
  else:
    return r*f(i-1)-d f if i==0:
    return x
  else:
    return r*f(i-1)-d i==0 i 0 return x x return r*f(i-1)-d r*f(i-1)-d r*f(i-1) r f(i-1) f i-1 i 1 d i i for i in range(10):
  print(r*f(i)-d) i range(10) range 10 print(r*f(i)-d) print r*f(i)-d r*f(i) r f(i) f i d 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()) map(int,input().split()) r def f(i):
  if i==0:
    return x
  else:
    return r*f(i-1)-d def f(i):
  if i==0:
    return x
  else:
    return r*f(i-1)-d f
r,d,x=map(int,input().split())

def f(i):
  if i==0:
    return x
  else:
    return r*f(i-1)-d

for i in range(10):
  print(r*f(i)-d)