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

X = []
X.append(x)

for i in range(10):
  x = r*X[i] - D
  X.append(x)
  print(x) r,D,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x X = [] X [] X.append(x) X.append X append x for i in range(10):
  x = r*X[i] - D
  X.append(x)
  print(x) i range(10) range 10 x = r*X[i] - D x r*X[i] - D r*X[i] r X[i] X i D X.append(x) X.append X append x print(x) print x r,D,x = map(int,input().split()) map(int,input().split()) r D,x = map(int,input().split()) map(int,input().split()) D x = map(int,input().split()) map(int,input().split()) x x = r*X[i] - D r*X[i] - D x X = [] [] X
r,D,x = map(int,input().split())

X = []
X.append(x)

for i in range(10):
  x = r*X[i] - D
  X.append(x)
  print(x)