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

x_prev = x0
for _ in range(10):
  weight = r * x_prev - D
  print(weight)
  x_prev = weight r, D, x0 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x0 x_prev = x0 x_prev x0 for _ in range(10):
  weight = r * x_prev - D
  print(weight)
  x_prev = weight _ range(10) range 10 weight = r * x_prev - D weight r * x_prev - D r * x_prev r x_prev D print(weight) print weight x_prev = weight x_prev weight r, D, x0 = map(int, input().split()) map(int, input().split()) r D, x0 = map(int, input().split()) map(int, input().split()) D x_prev = weight weight x_prev x0 = map(int, input().split()) map(int, input().split()) x0 x_prev = x0 x0 x_prev weight = r * x_prev - D r * x_prev - D weight
r, D, x0 = map(int, input().split())

x_prev = x0
for _ in range(10):
  weight = r * x_prev - D
  print(weight)
  x_prev = weight