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

L = [x]
for i in range(1,11):
  L.append(L[i-1]*r - d)
  
L.pop(0)
for i in range(len(L)):
  print(L[i]) r,d,x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x L = [x] L [x] x for i in range(1,11):
  L.append(L[i-1]*r - d)
   i range(1,11) range 1 11 L.append(L[i-1]*r - d) L.append L append L[i-1]*r - d L[i-1]*r L[i-1] L i-1 i 1 r d L.pop(0) L.pop L pop 0 for i in range(len(L)):
  print(L[i]) i range(len(L)) range len(L) len L print(L[i]) print L[i] L i r,d,x = map(int, input().split()) map(int, input().split()) r L = [x] [x] L x = map(int, input().split()) map(int, input().split()) x d,x = map(int, input().split()) map(int, input().split()) d
r,d,x = map(int, input().split())

L = [x]
for i in range(1,11):
  L.append(L[i-1]*r - d)
  
L.pop(0)
for i in range(len(L)):
  print(L[i])
