r,D,x2000 = map(int,input().split())
x = [0]*10
for i in range(10):
  if i == 0:
    x[i] = r*x2000-D
    print(x[i])
  else:
    x[i] = r*x[i-1]-D
    print(x[i]) r,D,x2000 = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split D x2000 x = [0]*10 x [0]*10 [0] 0 10 for i in range(10):
  if i == 0:
    x[i] = r*x2000-D
    print(x[i])
  else:
    x[i] = r*x[i-1]-D
    print(x[i]) i range(10) range 10 if i == 0:
    x[i] = r*x2000-D
    print(x[i])
  else:
    x[i] = r*x[i-1]-D
    print(x[i]) i == 0 i 0 x[i] = r*x2000-D x[i] x i r*x2000-D r*x2000 r x2000 D print(x[i]) print x[i] x i x[i] = r*x[i-1]-D x[i] x i r*x[i-1]-D r*x[i-1] r x[i-1] x i-1 i 1 D print(x[i]) print x[i] x i D,x2000 = map(int,input().split()) map(int,input().split()) D x = [0]*10 [0]*10 x r,D,x2000 = map(int,input().split()) map(int,input().split()) r x2000 = map(int,input().split()) map(int,input().split()) x2000
r,D,x2000 = map(int,input().split())
x = [0]*10
for i in range(10):
  if i == 0:
    x[i] = r*x2000-D
    print(x[i])
  else:
    x[i] = r*x[i-1]-D
    print(x[i])