r,D,x= [int(i) for i in input().split()]
def xa(x):
    return r*x-D
for i in range(10):
    ans = xa(x)
    x = ans
    print(ans) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i r,D,x= [int(i) for i in input().split()] r [int(i) for i in input().split()] D x def xa(x):
    return r*x-D xa return r*x-D r*x-D r*x r x D x x for i in range(10):
    ans = xa(x)
    x = ans
    print(ans) i range(10) range 10 ans = xa(x) ans xa(x) xa x x = ans x ans print(ans) print ans def xa(x):
    return r*x-D def xa(x):
    return r*x-D xa x = ans ans x D,x= [int(i) for i in input().split()] [int(i) for i in input().split()] D r,D,x= [int(i) for i in input().split()] [int(i) for i in input().split()] r x= [int(i) for i in input().split()] [int(i) for i in input().split()] x ans = xa(x) xa(x) ans
r,D,x= [int(i) for i in input().split()]
def xa(x):
    return r*x-D
for i in range(10):
    ans = xa(x)
    x = ans
    print(ans)