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

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

for i in range(1, 10+1):
    x = r*x - D
    print(x)
