r, D, x = list(map(lambda a: int(a), input().split(" ")))
 
ans = []
for i in range(10):
  x = r * x - D
  ans.append(str(x))
 
print("\n".join(ans)) r, D, x = list(map(lambda a: int(a), input().split(" "))) r list(map(lambda a: int(a), input().split(" "))) list map(lambda a: int(a), input().split(" ")) map lambda a: int(a) int(a) int a a input().split(" ") ().split () input split " " D x ans = [] ans [] for i in range(10):
  x = r * x - D
  ans.append(str(x))
  i range(10) range 10 x = r * x - D x r * x - D r * x r x D ans.append(str(x)) ans.append ans append str(x) str x print("\n".join(ans)) print "\n".join(ans) "\n".join "\n" join ans ans = [] [] ans x = list(map(lambda a: int(a), input().split(" "))) list(map(lambda a: int(a), input().split(" "))) x r, D, x = list(map(lambda a: int(a), input().split(" "))) list(map(lambda a: int(a), input().split(" "))) r x = r * x - D r * x - D x D, x = list(map(lambda a: int(a), input().split(" "))) list(map(lambda a: int(a), input().split(" "))) D
r, D, x = list(map(lambda a: int(a), input().split(" ")))
 
ans = []
for i in range(10):
  x = r * x - D
  ans.append(str(x))
 
print("\n".join(ans))