import System.Environment main = print . sum =<< mapM (fmap (length . lines) . readFile) =<< getArgs