d=input().split()
r=int(d[0])
D=int(d[1])
x=int(d[2])
for i in range(10):
    x=x*r-D
    print(x) d=input().split() d input().split() ().split () input split r=int(d[0]) r int(d[0]) int d[0] d 0 D=int(d[1]) D int(d[1]) int d[1] d 1 x=int(d[2]) x int(d[2]) int d[2] d 2 for i in range(10):
    x=x*r-D
    print(x) i range(10) range 10 x=x*r-D x x*r-D x*r x r D print(x) print x x=int(d[2]) int(d[2]) x D=int(d[1]) int(d[1]) D r=int(d[0]) int(d[0]) r d=input().split() input().split() d x=x*r-D x*r-D x
d=input().split()
r=int(d[0])
D=int(d[1])
x=int(d[2])
for i in range(10):
    x=x*r-D
    print(x)