program bott
  implicit none
  integer :: a,b
  integer :: ab(3),mx,i

  read(*,*) a,b
  ab(1)=a+a-1
  ab(2)=b+b-1
  ab(3)=a+b
!  if((aa.gt.))                                                                 
  mx=ab(1)
  do i=2,3
     if(mx.lt.ab(i)) then
        mx=ab(i)
     endif
  enddo
  write(*,'(i0)') mx

end program bott

