r,d,x=[int(x) for x in input().rstrip().split()]

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