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

x = x_2000
for _ in range(10):
    x = r*x - D
    print(x) r, D, x_2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x_2000 x = x_2000 x x_2000 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 x = x_2000 x_2000 x r, D, x_2000 = map(int, input().split()) map(int, input().split()) r x = r*x - D r*x - D x D, x_2000 = map(int, input().split()) map(int, input().split()) D x_2000 = map(int, input().split()) map(int, input().split()) x_2000
r, D, x_2000 = map(int, input().split())

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