N = gets.to_i puts N.times.map{ gets.to_i }.sum