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