r, D, x = map(int,input().split())
ans=[x]
for i in range(10):  
  tmp = r*ans[i] - D
  ans.append(tmp)
  print(tmp) r, D, x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x ans=[x] ans [x] x for i in range(10):  
  tmp = r*ans[i] - D
  ans.append(tmp)
  print(tmp) i range(10) range 10 tmp = r*ans[i] - D tmp r*ans[i] - D r*ans[i] r ans[i] ans i D ans.append(tmp) ans.append ans append tmp print(tmp) print tmp x = map(int,input().split()) map(int,input().split()) x ans=[x] [x] ans tmp = r*ans[i] - D r*ans[i] - D tmp D, x = map(int,input().split()) map(int,input().split()) D r, D, x = map(int,input().split()) map(int,input().split()) r
r, D, x = map(int,input().split())
ans=[x]
for i in range(10):  
  tmp = r*ans[i] - D
  ans.append(tmp)
  print(tmp)