a,b,c = input().split(" ")
for i in range(10):
  ans = int(a)*int(c) - int(b)
  c = ans
  print(c) a,b,c = input().split(" ") a input().split(" ") ().split () input split " " b c for i in range(10):
  ans = int(a)*int(c) - int(b)
  c = ans
  print(c) i range(10) range 10 ans = int(a)*int(c) - int(b) ans int(a)*int(c) - int(b) int(a)*int(c) int(a) int a int(c) int c int(b) int b c = ans c ans print(c) print c ans = int(a)*int(c) - int(b) int(a)*int(c) - int(b) ans c = input().split(" ") input().split(" ") c a,b,c = input().split(" ") input().split(" ") a c = ans ans c b,c = input().split(" ") input().split(" ") b
a,b,c = input().split(" ")
for i in range(10):
  ans = int(a)*int(c) - int(b)
  c = ans
  print(c)