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