Imports System.Collections.Generic
Public Class Program
  Shared Sub Main()
    Dim ab As Integer() = Array.ConvertAll(Of String, Integer)(Console.ReadLine().Split(" "), AddressOf Integer.Parse)
    Dim a As Integer = ab(0)  
    Dim b As Integer = ab(1)
    Console.WriteLine(Math.Max(a + b, Math.Max(a - b, a * b)).ToString())
  End Sub
End Class