r ,d, x = [int(i) for i in input().split()]
res = x
for _ in range(10):
  res = res * r - d
  print(res) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i r ,d, x = [int(i) for i in input().split()] r [int(i) for i in input().split()] d x res = x res x for _ in range(10):
  res = res * r - d
  print(res) _ range(10) range 10 res = res * r - d res res * r - d res * r res r d print(res) print res r ,d, x = [int(i) for i in input().split()] [int(i) for i in input().split()] r res = res * r - d res * r - d res res = x x res d, x = [int(i) for i in input().split()] [int(i) for i in input().split()] d x = [int(i) for i in input().split()] [int(i) for i in input().split()] x
r ,d, x = [int(i) for i in input().split()]
res = x
for _ in range(10):
  res = res * r - d
  print(res)