r, D, x2000 = map(int, input().split())
result = []
for i in range(10):
  if i == 0:
    result.append(r*x2000-D)
    continue
  result.append(r*result[i-1]-D)
[print(i) for i in result] r, D, x2000 = map(int, input().split()) r map(int, input().split()) map int input().split() ().split () input split D x2000 result = [] result [] for i in range(10):
  if i == 0:
    result.append(r*x2000-D)
    continue
  result.append(r*result[i-1]-D) i range(10) range 10 if i == 0:
    result.append(r*x2000-D)
    continue
   i == 0 i 0 result.append(r*x2000-D) result.append result append r*x2000-D r*x2000 r x2000 D continue result.append(r*result[i-1]-D) result.append result append r*result[i-1]-D r*result[i-1] r result[i-1] result i-1 i 1 D print(i) for i in result for i in result i result for i in result print(i) print i [print(i) for i in result] D, x2000 = map(int, input().split()) map(int, input().split()) D result = [] [] result x2000 = map(int, input().split()) map(int, input().split()) x2000 r, D, x2000 = map(int, input().split()) map(int, input().split()) r
r, D, x2000 = map(int, input().split())
result = []
for i in range(10):
  if i == 0:
    result.append(r*x2000-D)
    continue
  result.append(r*result[i-1]-D)
[print(i) for i in result]