main = print . sum . map read . tail . lines =<< getContents