# 127 B

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

for i in range(10):
    x2 = (r * x1) - D
    print(x2)
    x1 = x2 r, D, x1 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x1 for i in range(10):
    x2 = (r * x1) - D
    print(x2)
    x1 = x2 i range(10) range 10 x2 = (r * x1) - D x2 (r * x1) - D r * x1 r x1 D print(x2) print x2 x1 = x2 x1 x2 x1 = x2 x2 x1 D, x1 = map(int, input().split()) map(int, input().split()) D x2 = (r * x1) - D (r * x1) - D x2 r, D, x1 = map(int, input().split()) map(int, input().split()) r x1 = map(int, input().split()) map(int, input().split()) x1
# 127 B

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

for i in range(10):
    x2 = (r * x1) - D
    print(x2)
    x1 = x2
