r,d,x=map(int,input().split())
L=[]
for i in range(10):
  x = r*x - d
  L.append(x)
for j in range(10):
  print(L[j]) r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x L=[] L [] for i in range(10):
  x = r*x - d
  L.append(x) i range(10) range 10 x = r*x - d x r*x - d r*x r x d L.append(x) L.append L append x for j in range(10):
  print(L[j]) j range(10) range 10 print(L[j]) print L[j] L j d,x=map(int,input().split()) map(int,input().split()) d x=map(int,input().split()) map(int,input().split()) x L=[] [] L r,d,x=map(int,input().split()) map(int,input().split()) r x = r*x - d r*x - d x
r,d,x=map(int,input().split())
L=[]
for i in range(10):
  x = r*x - d
  L.append(x)
for j in range(10):
  print(L[j])