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

x2001 = r*x2000-D

print(x2001)

xx = x2001

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

x2001 = r*x2000-D

print(x2001)

xx = x2001

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