r, d, x = map(int, input().split())
i = 1
while(i<=10):
    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 = 1 i 1 while(i<=10):
    x = r*(x)-d
    print(x)
    i += 1 i<=10 i 10 x = r*(x)-d x r*(x)-d r*(x) r x d print(x) print x i += 1 i 1 x = map(int, input().split()) map(int, input().split()) x r, d, x = map(int, input().split()) map(int, input().split()) r d, x = map(int, input().split()) map(int, input().split()) d x = r*(x)-d r*(x)-d x i += 1 1 i i = 1 1 i
r, d, x = map(int, input().split())
i = 1
while(i<=10):
    x = r*(x)-d
    print(x)
    i += 1