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

def calc_weight(r, d, x):
  return r*x-d

for _ in range(10):
  x = calc_weight(r, d, x)
  print(x) r,d,x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split d x def calc_weight(r, d, x):
  return r*x-d calc_weight return r*x-d r*x-d r*x r x d r r d d x x for _ in range(10):
  x = calc_weight(r, d, x)
  print(x) _ range(10) range 10 x = calc_weight(r, d, x) x calc_weight(r, d, x) calc_weight r d x print(x) print x def calc_weight(r, d, x):
  return r*x-d def calc_weight(r, d, x):
  return r*x-d calc_weight r,d,x = map(int, input().split()) map(int, input().split()) r x = map(int, input().split()) map(int, input().split()) x d,x = map(int, input().split()) map(int, input().split()) d x = calc_weight(r, d, x) calc_weight(r, d, x) x
r,d,x = map(int, input().split())

def calc_weight(r, d, x):
  return r*x-d

for _ in range(10):
  x = calc_weight(r, d, x)
  print(x)