n = gets.to_i
v_array = gets.split(' ').map(&:to_f)

permutation_array = v_array.permutation
result = []

permutation_array.map do |array|
  result << array.inject{|sum, n| (sum + n) /2 }
end

puts result.uniq.max