#ABC127 B

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

for j in range(10):
    print(A[j+1]) 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(11):
    if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D) i range(11) range 11 if i == 0:
        A.append(x)
    else:
        A.append(r*(A[i-1])-D) i == 0 i 0 A.append(x) A.append A append x A.append(r*(A[i-1])-D) A.append A append r*(A[i-1])-D r*(A[i-1]) r A[i-1] A i-1 i 1 D for j in range(10):
    print(A[j+1]) j range(10) range 10 print(A[j+1]) print A[j+1] A j+1 j 1 x = map(int,input().split()) map(int,input().split()) x A = [] [] A r,D,x = map(int,input().split()) map(int,input().split()) r D,x = map(int,input().split()) map(int,input().split()) D
#ABC127 B

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

for j in range(10):
    print(A[j+1])