n=gets a=gets.split.map(&:to_i) print a.inject(:+)