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

x = [x_2000] * 11

for i in range(10):
  x[i+1] = r * x[i] - D
  
print(*x[1:], sep='\n') r, D, x_2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x_2000 x = [x_2000] * 11 x [x_2000] * 11 [x_2000] x_2000 11 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 print(*x[1:], sep='\n') print *x[1:] x[1:] x 1: 1 sep='\n' sep '\n' D, x_2000 = map(int, input().split()) map(int, input().split()) D x = [x_2000] * 11 [x_2000] * 11 x x_2000 = map(int, input().split()) map(int, input().split()) x_2000 r, D, x_2000 = map(int, input().split()) map(int, input().split()) r
r, D, x_2000 = map(int, input().split())

x = [x_2000] * 11

for i in range(10):
  x[i+1] = r * x[i] - D
  
print(*x[1:], sep='\n')