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

for i in range(1, 11):
    y = r * x - d
    print(y)
    x = y r, d, x = list(map(int, input().split())) r list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d x for i in range(1, 11):
    y = r * x - d
    print(y)
    x = y i range(1, 11) range 1 11 y = r * x - d y r * x - d r * x r x d print(y) print y x = y x y x = y y x y = r * x - d r * x - d y r, d, x = list(map(int, input().split())) list(map(int, input().split())) r d, x = list(map(int, input().split())) list(map(int, input().split())) d x = list(map(int, input().split())) list(map(int, input().split())) x
r, d, x = list(map(int, input().split()))

for i in range(1, 11):
    y = r * x - d
    print(y)
    x = y