N = gets.to_i puts Array.new(N){gets.to_i}.inject(0, :+)