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

ans = []
for i in range(10):
  x = x*r-D
  ans.append(x)

for i in range(10):
  print(ans[i]) r, D,x = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x ans = [] ans [] for i in range(10):
  x = x*r-D
  ans.append(x) i range(10) range 10 x = x*r-D x x*r-D x*r x r D ans.append(x) ans.append ans append x for i in range(10):
  print(ans[i]) i range(10) range 10 print(ans[i]) print ans[i] ans i x = map(int, input().split()) map(int, input().split()) x x = x*r-D x*r-D x r, D,x = map(int, input().split()) map(int, input().split()) r D,x = map(int, input().split()) map(int, input().split()) D ans = [] [] ans
r, D,x = map(int, input().split())

ans = []
for i in range(10):
  x = x*r-D
  ans.append(x)

for i in range(10):
  print(ans[i])