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