program prob79
    implicit none
    integer :: a,b,ans
    read(*,*) a,b

    if(a >= b)then
        ans = a
        a = a - 1
    else
        ans = b
        b = b - 1
    end if
    ans = ans + max(a,b)
    write(*,*) ans

    stop
contains
end program prob79