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

c=0
while c<10:
    x=r*x-D
    print(x)
    c+=1 r,D,x=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x c=0 c 0 while c<10:
    x=r*x-D
    print(x)
    c+=1 c<10 c 10 x=r*x-D x r*x-D r*x r x D print(x) print x c+=1 c 1 D,x=map(int,input().split()) map(int,input().split()) D x=r*x-D r*x-D x r,D,x=map(int,input().split()) map(int,input().split()) r c=0 0 c x=map(int,input().split()) map(int,input().split()) x c+=1 1 c
r,D,x=map(int,input().split())

c=0
while c<10:
    x=r*x-D
    print(x)
    c+=1