program prob13
    implicit none
    integer :: a, b
    integer :: ans
    read(*,*) a,b
    ans = a+b
    ans = max(ans, a-b)
    ans = max(ans, a*b)
    write(*,*) ans


    stop
contains
end program prob13