r, D, x2000 = map(int, input().split())

xs = []
x = x2000
for _ in range(10):
    x = r*x - D
    xs.append(x)

print('\n'.join(map(str, xs))) r, D, x2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x2000 xs = [] xs [] x = x2000 x x2000 for _ in range(10):
    x = r*x - D
    xs.append(x) _ range(10) range 10 x = r*x - D x r*x - D r*x r x D xs.append(x) xs.append xs append x print('\n'.join(map(str, xs))) print '\n'.join(map(str, xs)) '\n'.join '\n' join map(str, xs) map str xs D, x2000 = map(int, input().split()) map(int, input().split()) D x = r*x - D r*x - D x r, D, x2000 = map(int, input().split()) map(int, input().split()) r x = x2000 x2000 x xs = [] [] xs x2000 = map(int, input().split()) map(int, input().split()) x2000
r, D, x2000 = map(int, input().split())

xs = []
x = x2000
for _ in range(10):
    x = r*x - D
    xs.append(x)

print('\n'.join(map(str, xs)))
