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

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

x_add = x2000
for i in range(10):
  x_print = r * x_add - D
  print(x_print)
  x_add = x_print