r, d, x = map(int, input().split())
algae = []
x_n = x
for i in range(10):
    z = r * x_n - d
    algae.append(z)
    x_n = z
for i in algae:
    print(i) r, d, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x algae = [] algae [] x_n = x x_n x for i in range(10):
    z = r * x_n - d
    algae.append(z)
    x_n = z i range(10) range 10 z = r * x_n - d z r * x_n - d r * x_n r x_n d algae.append(z) algae.append algae append z x_n = z x_n z for i in algae:
    print(i) i algae print(i) print i d, x = map(int, input().split()) map(int, input().split()) d algae = [] [] algae x_n = x x x_n x_n = z z x_n z = r * x_n - d r * x_n - d z r, d, x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x
r, d, x = map(int, input().split())
algae = []
x_n = x
for i in range(10):
    z = r * x_n - d
    algae.append(z)
    x_n = z
for i in algae:
    print(i)