program atcoder
    implicit none
    integer :: n,maxp,sum,i,k
    maxp = 0
    sum = 0
    read *,n
    do i = 1,n
        read *,k
        sum = sum + k
        maxp = max(maxp,k)
    enddo
    write(*,'(I0)')sum-maxp/2
!----------------------functions--------------------------
contains

end program atcoder