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

ans = []
tmp = r*x - d
ans.append(tmp)
print(tmp)
for i in range(0,9):
  x_i = ans[i]
  tmp = r*x_i - d
  ans.append(tmp)
  print(tmp) r,d,x = map(int,input().split()) r map(int,input().split()) map int input().split() ().split () input split d x ans = [] ans [] tmp = r*x - d tmp r*x - d r*x r x d ans.append(tmp) ans.append ans append tmp print(tmp) print tmp for i in range(0,9):
  x_i = ans[i]
  tmp = r*x_i - d
  ans.append(tmp)
  print(tmp) i range(0,9) range 0 9 x_i = ans[i] x_i ans[i] ans i tmp = r*x_i - d tmp r*x_i - d r*x_i r x_i d ans.append(tmp) ans.append ans append tmp print(tmp) print tmp tmp = r*x - d r*x - d tmp d,x = map(int,input().split()) map(int,input().split()) d ans = [] [] ans tmp = r*x_i - d r*x_i - d tmp r,d,x = map(int,input().split()) map(int,input().split()) r x_i = ans[i] ans[i] x_i x = map(int,input().split()) map(int,input().split()) x
r,d,x = map(int,input().split())

ans = []
tmp = r*x - d
ans.append(tmp)
print(tmp)
for i in range(0,9):
  x_i = ans[i]
  tmp = r*x_i - d
  ans.append(tmp)
  print(tmp)