r,d,x = map(int,input().split())
def saiki(r,x,d,number):
    number +=1
    if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number)
saiki(r,x,d,2000) r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x def saiki(r,x,d,number):
    number +=1
    if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number) saiki number +=1 number 1 if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number) number <=2010 number 2010 x = r*x-d x r*x-d r*x r x d print(x) print x saiki(r,x,d,number) saiki r x d number r r x x d d number number saiki(r,x,d,2000) saiki r x d 2000 def saiki(r,x,d,number):
    number +=1
    if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number) def saiki(r,x,d,number):
    number +=1
    if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number) saiki d,x = map(int,input().split()) map(int,input().split()) d 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())
def saiki(r,x,d,number):
    number +=1
    if number <=2010:
        x = r*x-d
        print(x)
        saiki(r,x,d,number)
saiki(r,x,d,2000)