r,d,x=[int(x) for x in input().rstrip().split()]
for i in range(10):
  x=r*x-d
  print(x) int(x) for x in input().rstrip().split() for x in input().rstrip().split() x input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for x in input().rstrip().split() int(x) int x r,d,x=[int(x) for x in input().rstrip().split()] r [int(x) for x in input().rstrip().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 r,d,x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] r x=r*x-d r*x-d x d,x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] d x=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] x
r,d,x=[int(x) for x in input().rstrip().split()]
for i in range(10):
  x=r*x-d
  print(x)