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



tmp = x

for i in range(10):

    ans = r * tmp - d

    print(ans)

    tmp = ans
r, D, x = list(map(int, input().split()))



for i in range(10):

    ans = r * x - D

    print(ans)

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

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

-r, d, x = list(map(int, input().split())) -tmp = x +r, D, x = list(map(int, input().split())) -    ans = r * tmp - d +    ans = r * x - D -    tmp = ans +    x = ans