r,D,x2000=map(int,input().split())
check=x2000
for i in range(10):
  temp=r*check-D
  print(temp)
  check=temp r,D,x2000=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x2000 check=x2000 check x2000 for i in range(10):
  temp=r*check-D
  print(temp)
  check=temp i range(10) range 10 temp=r*check-D temp r*check-D r*check r check D print(temp) print temp check=temp check temp D,x2000=map(int,input().split()) map(int,input().split()) D check=x2000 x2000 check check=temp temp check r,D,x2000=map(int,input().split()) map(int,input().split()) r temp=r*check-D r*check-D temp x2000=map(int,input().split()) map(int,input().split()) x2000
r,D,x2000=map(int,input().split())
check=x2000
for i in range(10):
  temp=r*check-D
  print(temp)
  check=temp
