r,d,x=map(int,input().split())
count=0
num=x
for i in range(10):
    count=num*r-d
    num=count
    print(num) r,d,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x count=0 count 0 num=x num x for i in range(10):
    count=num*r-d
    num=count
    print(num) i range(10) range 10 count=num*r-d count num*r-d num*r num r d num=count num count print(num) print num r,d,x=map(int,input().split()) map(int,input().split()) r count=num*r-d num*r-d count num=count count num x=map(int,input().split()) map(int,input().split()) x num=x x num d,x=map(int,input().split()) map(int,input().split()) d count=0 0 count
r,d,x=map(int,input().split())
count=0
num=x
for i in range(10):
    count=num*r-d
    num=count
    print(num)
