import Control.Monad

main::IO()
main=do
  r:d:st:_ <- return.map read .words =<< getLine
  foldM_ (\ st -> \ _ -> do
                          let next = (r*st - d)
                          print next
                          return next ) st [1..10]
