main = getLine >> getLine >>= print.sum.map read.words