{-# OPTIONS_GHC -O2 -funbox-strict-fields #-}
main :: IO ()
main = do
  [a, b] <- map read . words <$> getLine
  print $ solve a b

solve :: Int -> Int -> Int
solve a b = maximum [a + b, a - b, a * b]
