r, D, x2k = [int(n) for n in input().split()]
X = [x2k]
for i in range(10):
    X.append(r*X[i]-D)
    print(X[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, x2k = [int(n) for n in input().split()] r [int(n) for n in input().split()] D x2k X = [x2k] X [x2k] x2k for i in range(10):
    X.append(r*X[i]-D)
    print(X[i+1]) i range(10) range 10 X.append(r*X[i]-D) X.append X append r*X[i]-D r*X[i] r X[i] X i D print(X[i+1]) print X[i+1] X i+1 i 1 x2k = [int(n) for n in input().split()] [int(n) for n in input().split()] x2k X = [x2k] [x2k] X r, D, x2k = [int(n) for n in input().split()] [int(n) for n in input().split()] r D, x2k = [int(n) for n in input().split()] [int(n) for n in input().split()] D
r, D, x2k = [int(n) for n in input().split()]
X = [x2k]
for i in range(10):
    X.append(r*X[i]-D)
    print(X[i+1])
