r,D,x0=map(int,input().split())
X=[x0]
for _ in range(10):
  X.append(0)
for i in range(10):
  X[i+1]=r*X[i]-D
for i in range(1,11):
  print(X[i]) r,D,x0=map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x0 X=[x0] X [x0] x0 for _ in range(10):
  X.append(0) _ range(10) range 10 X.append(0) X.append X append 0 for i in range(10):
  X[i+1]=r*X[i]-D i range(10) range 10 X[i+1]=r*X[i]-D X[i+1] X i+1 i 1 r*X[i]-D r*X[i] r X[i] X i D for i in range(1,11):
  print(X[i]) i range(1,11) range 1 11 print(X[i]) print X[i] X i D,x0=map(int,input().split()) map(int,input().split()) D X=[x0] [x0] X r,D,x0=map(int,input().split()) map(int,input().split()) r x0=map(int,input().split()) map(int,input().split()) x0
r,D,x0=map(int,input().split())
X=[x0]
for _ in range(10):
  X.append(0)
for i in range(10):
  X[i+1]=r*X[i]-D
for i in range(1,11):
  print(X[i])