r, D, X_1 = input().split()
r = int(r)
D = int(D)
x = int(X_1)
for i in range(10):
  x = r * x - D
  print(str(x)) r, D, X_1 = input().split() r input().split() ().split () input split D X_1 r = int(r) r int(r) int r D = int(D) D int(D) int D x = int(X_1) x int(X_1) int X_1 for i in range(10):
  x = r * x - D
  print(str(x)) i range(10) range 10 x = r * x - D x r * x - D r * x r x D print(str(x)) print str(x) str x r = int(r) int(r) r x = r * x - D r * x - D x r, D, X_1 = input().split() input().split() r x = int(X_1) int(X_1) x D = int(D) int(D) D D, X_1 = input().split() input().split() D X_1 = input().split() input().split() X_1
r, D, X_1 = input().split()
r = int(r)
D = int(D)
x = int(X_1)
for i in range(10):
  x = r * x - D
  print(str(x))
