n=gets.to_i a=[] n.times do |i| a[i]=gets.to_i end print a.inject(:+)