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

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

for i in range(1, 11):
  print(r*x2000-D)
  x2000 = r*x2000-D