r,D,x=map(int,input().split())
A=[]


for i in range(1,11):
    B=r*x-D
    A.append(B)
    x=B
for s in A:
    print(s) r,D,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x A=[] A [] for i in range(1,11):
    B=r*x-D
    A.append(B)
    x=B i range(1,11) range 1 11 B=r*x-D B r*x-D r*x r x D A.append(B) A.append A append B x=B x B for s in A:
    print(s) s A print(s) print s A=[] [] A x=B B x D,x=map(int,input().split()) map(int,input().split()) D B=r*x-D r*x-D B r,D,x=map(int,input().split()) map(int,input().split()) r x=map(int,input().split()) map(int,input().split()) x
r,D,x=map(int,input().split())
A=[]


for i in range(1,11):
    B=r*x-D
    A.append(B)
    x=B
for s in A:
    print(s)