r, d, x = map(int, input().split())
cnt = 0

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

while cnt < 10:
    x = r*x-d
    print(x)
    cnt += 1