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

for i in range(10):
  x = r * x2000 - D
  print(x)
  x2000 = x 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(10):
  x = r * x2000 - D
  print(x)
  x2000 = x i range(10) range 10 x = r * x2000 - D x r * x2000 - D r * x2000 r x2000 D print(x) print x x2000 = x x2000 x x = r * x2000 - D r * x2000 - D x r, D, x2000 = map(int, input().split()) map(int, input().split()) r x2000 = map(int, input().split()) map(int, input().split()) x2000 D, x2000 = map(int, input().split()) map(int, input().split()) D x2000 = x x x2000
r, D, x2000 = map(int, input().split())

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