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

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

for i in range(10):
  if i == 0:
    weight = r*x - D
    print(weight)
  else:
    weight = r*weight - D
    print(weight)