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



for i in range(10):

    x = r * x - d

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

for i in range(10):

    x = (r * x) - d

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

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

-    x = r * x - d +    x = (r * x) - d