program ABC115B
    implicit none
    integer(8)::i
    integer(8)::N,p
    integer(8)::p_max=0
    integer(8)::pay=0

    read(5,*)N
    
    do i=1,N
        read(5,*)p
        if(p>p_max)then
            p_max=p
        end if
        pay=pay+p
    end do
    
    pay=pay-p_max/2

    print'(i0)',pay
end program ABC115B