# unihernandez22
# https://atcoder.jp/contests/abc127/tasks/abc127_b
# implementation

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

for _ in range(10):
    x = r*x-d
    print(x) r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x for _ in range(10):
    x = r*x-d
    print(x) _ range(10) range 10 x = r*x-d x r*x-d r*x r x d print(x) print x d, x = map(int, input().split()) map(int, input().split()) d r, d, x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x x = r*x-d r*x-d x
# unihernandez22
# https://atcoder.jp/contests/abc127/tasks/abc127_b
# implementation

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

for _ in range(10):
    x = r*x-d
    print(x)