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

def num(i):
    return r*i-D

a = x
for i in range(10):
    a = num(a)
    print(a)
     r, D, x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x def num(i):
    return r*i-D num return r*i-D r*i-D r*i r i D i i a = x a x for i in range(10):
    a = num(a)
    print(a)
     i range(10) range 10 a = num(a) a num(a) num a print(a) print a x = map(int, input().split()) map(int, input().split()) x r, D, x = map(int, input().split()) map(int, input().split()) r def num(i):
    return r*i-D def num(i):
    return r*i-D num a = x x a a = num(a) num(a) a D, x = map(int, input().split()) map(int, input().split()) D
r, D, x = map(int, input().split())

def num(i):
    return r*i-D

a = x
for i in range(10):
    a = num(a)
    print(a)
    
