program sample
	implicit none
    integer :: a,b
    read(*,*) a,b
    
    if (a<b) then
    	write(*,*) b+b-1
    else if (b<a) then
    	write(*,*) a+a-1
    else
    	write(*,*) a+b
    end if
    stop
end program sample

