parseInt(x) = parse(Int, x)
parseArray(x::Array{SubString{String}, 1}) = map(parseInt, x)

function main()
  n = readline() |> parseInt
  v = readline() |> split |> parseArray

  i=findmin(v)
  ans=sum(v[j] for j in 1:n if j!=i)/2

  println(ans)
end

main()
