r, D, x = (int(x) for x in input().split())
for i in range(10):
  x = r*x -D
  print(x) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x r, D, x = (int(x) for x in input().split()) r (int(x) for x in input().split()) D x for i in range(10):
  x = r*x -D
  print(x) i range(10) range 10 x = r*x -D x r*x -D r*x r x D print(x) print x D, x = (int(x) for x in input().split()) (int(x) for x in input().split()) D r, D, x = (int(x) for x in input().split()) (int(x) for x in input().split()) r x = r*x -D r*x -D x x = (int(x) for x in input().split()) (int(x) for x in input().split()) x
r, D, x = (int(x) for x in input().split())
for i in range(10):
  x = r*x -D
  print(x)