r,d,s=map(int,input().split())
l=[0]*11
l[0]=s
for i in range(10):
  l[i+1]=l[i]*r-d
  print(l[i+1]) r,d,s=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d s l=[0]*11 l [0]*11 [0] 0 11 l[0]=s l[0] l 0 s for i in range(10):
  l[i+1]=l[i]*r-d
  print(l[i+1]) i range(10) range 10 l[i+1]=l[i]*r-d l[i+1] l i+1 i 1 l[i]*r-d l[i]*r l[i] l i r d print(l[i+1]) print l[i+1] l i+1 i 1 d,s=map(int,input().split()) map(int,input().split()) d s=map(int,input().split()) map(int,input().split()) s l=[0]*11 [0]*11 l r,d,s=map(int,input().split()) map(int,input().split()) r
r,d,s=map(int,input().split())
l=[0]*11
l[0]=s
for i in range(10):
  l[i+1]=l[i]*r-d
  print(l[i+1])