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

for i in range(1,11):
    X=x*r-D
    print(X)
    x=X r,D,x=map(int,input().split(" ")) r map(int,input().split(" ")) map int input().split(" ") ().split () input split " " D x for i in range(1,11):
    X=x*r-D
    print(X)
    x=X i range(1,11) range 1 11 X=x*r-D X x*r-D x*r x r D print(X) print X x=X x X X=x*r-D x*r-D X D,x=map(int,input().split(" ")) map(int,input().split(" ")) D x=map(int,input().split(" ")) map(int,input().split(" ")) x r,D,x=map(int,input().split(" ")) map(int,input().split(" ")) r x=X X x
r,D,x=map(int,input().split(" "))

for i in range(1,11):
    X=x*r-D
    print(X)
    x=X