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