N=gets.to_i puts STDIN.read.split.map(&:to_i).inject(:+)