program main
  implicit none

  integer a, b

  read(*,*)a, b
  if (b <0) then
    if (a < 0) then
      write(*,*)a*b
    else
      write(*,*)a - b
    end if
  else
    write(*,*)a + b
  end if

end program main