import Control.Applicative
import Control.Monad
import Data.Functor
import Data.List

readInts = map read . words <$> getLine :: IO [Int]

solve [r, d, x2000] = take 10 $ drop 1 $ iterate next x2000
  where
    next x = r * x - d

main = readInts >>= mapM_ print . solve
