r, d, x0 = list(map(int, input().split()))
for _ in range(10):
    x = r * x0 - d
    print(x)
    x0 = x r, d, x0 = list(map(int, input().split())) r list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split d x0 for _ in range(10):
    x = r * x0 - d
    print(x)
    x0 = x _ range(10) range 10 x = r * x0 - d x r * x0 - d r * x0 r x0 d print(x) print x x0 = x x0 x x = r * x0 - d r * x0 - d x x0 = x x x0 x0 = list(map(int, input().split())) list(map(int, input().split())) x0 d, x0 = list(map(int, input().split())) list(map(int, input().split())) d r, d, x0 = list(map(int, input().split())) list(map(int, input().split())) r
r, d, x0 = list(map(int, input().split()))
for _ in range(10):
    x = r * x0 - d
    print(x)
    x0 = x
