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

def next(x):
    return r*x-D

year=[None]*11
year[0]=x2000
for i in range(0, 10):
    print(next(year[i]))
    year[i+1]=next(year[i]) r, D, x2000=map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x2000 def next(x):
    return r*x-D next return r*x-D r*x-D r*x r x D x x year=[None]*11 year [None]*11 [None] None 11 year[0]=x2000 year[0] year 0 x2000 for i in range(0, 10):
    print(next(year[i]))
    year[i+1]=next(year[i]) i range(0, 10) range 0 10 print(next(year[i])) print next(year[i]) next year[i] year i year[i+1]=next(year[i]) year[i+1] year i+1 i 1 next(year[i]) next year[i] year i D, x2000=map(int, input().split()) map(int, input().split()) D def next(x):
    return r*x-D def next(x):
    return r*x-D next year=[None]*11 [None]*11 year r, D, x2000=map(int, input().split()) map(int, input().split()) r x2000=map(int, input().split()) map(int, input().split()) x2000
r, D, x2000=map(int, input().split())

def next(x):
    return r*x-D

year=[None]*11
year[0]=x2000
for i in range(0, 10):
    print(next(year[i]))
    year[i+1]=next(year[i])
