import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS

readInt = fst . fromJust . BS.readInteger
getIntList = map readInt . BS.words <$> BS.getLine
getIntMatrix = map (map readInt . BS.words) . BS.lines <$> BS.getContents

main = do
  [r,d,x] <- getIntList
  mapM_ print $ take 10 $ drop 1 $ iterate (f r d) x

f r d x = r*x-d