r,d,x = map(int, input().split())
i = 0
for i in range(1,11):
    x = r*x-d
    print(x)
    i+=1 r,d,x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x i = 0 i 0 for i in range(1,11):
    x = r*x-d
    print(x)
    i+=1 i range(1,11) range 1 11 x = r*x-d x r*x-d r*x r x d print(x) print x i+=1 i 1 i+=1 1 i d,x = map(int, input().split()) map(int, input().split()) d x = map(int, input().split()) map(int, input().split()) x i = 0 0 i r,d,x = map(int, input().split()) map(int, input().split()) r x = r*x-d r*x-d x
r,d,x = map(int, input().split())
i = 0
for i in range(1,11):
    x = r*x-d
    print(x)
    i+=1