n = gets.to_i a = Array.new(n) a = readlines t = 0 a.each do |i| t += i.to_i end puts t