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