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

a = x2000

for x in range(10):
  a = r * a - d
  print(a) r,d,x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x2000 a = x2000 a x2000 for x in range(10):
  a = r * a - d
  print(a) x range(10) range 10 a = r * a - d a r * a - d r * a r a d print(a) print a x2000 = map(int,input().split()) map(int,input().split()) x2000 d,x2000 = map(int,input().split()) map(int,input().split()) d r,d,x2000 = map(int,input().split()) map(int,input().split()) r a = r * a - d r * a - d a a = x2000 x2000 a
r,d,x2000 = map(int,input().split())

a = x2000

for x in range(10):
  a = r * a - d
  print(a)