x = list(map(int, input().split()))
tmp = 0
for i in range(0, 10):
  if tmp == 0:
    tmp = x[2]
  tmp = x[0] * tmp - x[1]
  print(tmp) x = list(map(int, input().split())) x list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split tmp = 0 tmp 0 for i in range(0, 10):
  if tmp == 0:
    tmp = x[2]
  tmp = x[0] * tmp - x[1]
  print(tmp) i range(0, 10) range 0 10 if tmp == 0:
    tmp = x[2]
   tmp == 0 tmp 0 tmp = x[2] tmp x[2] x 2 tmp = x[0] * tmp - x[1] tmp x[0] * tmp - x[1] x[0] * tmp x[0] x 0 tmp x[1] x 1 print(tmp) print tmp x = list(map(int, input().split())) list(map(int, input().split())) x tmp = x[0] * tmp - x[1] x[0] * tmp - x[1] tmp tmp = 0 0 tmp tmp = x[2] x[2] tmp
x = list(map(int, input().split()))
tmp = 0
for i in range(0, 10):
  if tmp == 0:
    tmp = x[2]
  tmp = x[0] * tmp - x[1]
  print(tmp)