r, D, x = [int(n) for n in input().split()]
y =[x]
for i in range(10):
    y.append(r*y[i]-D)
    print(y[i+1]) int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n r, D, x = [int(n) for n in input().split()] r [int(n) for n in input().split()] D x y =[x] y [x] x for i in range(10):
    y.append(r*y[i]-D)
    print(y[i+1]) i range(10) range 10 y.append(r*y[i]-D) y.append y append r*y[i]-D r*y[i] r y[i] y i D print(y[i+1]) print y[i+1] y i+1 i 1 D, x = [int(n) for n in input().split()] [int(n) for n in input().split()] D r, D, x = [int(n) for n in input().split()] [int(n) for n in input().split()] r x = [int(n) for n in input().split()] [int(n) for n in input().split()] x y =[x] [x] y
r, D, x = [int(n) for n in input().split()]
y =[x]
for i in range(10):
    y.append(r*y[i]-D)
    print(y[i+1])
