r,d,x = [int(y) for y in input().split()]

def getx(f):
      return r*f-d

for i in range(2001, 2011):
      x = getx(x)
      print(x) int(y) for y in input().split() for y in input().split() y input().split() ().split () input split for y in input().split() int(y) int y r,d,x = [int(y) for y in input().split()] r [int(y) for y in input().split()] d x def getx(f):
      return r*f-d getx return r*f-d r*f-d r*f r f d f f for i in range(2001, 2011):
      x = getx(x)
      print(x) i range(2001, 2011) range 2001 2011 x = getx(x) x getx(x) getx x print(x) print x def getx(f):
      return r*f-d def getx(f):
      return r*f-d getx x = [int(y) for y in input().split()] [int(y) for y in input().split()] x x = getx(x) getx(x) x d,x = [int(y) for y in input().split()] [int(y) for y in input().split()] d r,d,x = [int(y) for y in input().split()] [int(y) for y in input().split()] r
r,d,x = [int(y) for y in input().split()]

def getx(f):
      return r*f-d

for i in range(2001, 2011):
      x = getx(x)
      print(x)
