Imports System.Collections.Generic
Imports System.Console
Imports System.Math  
Module Program
 	Sub Main()
        Dim input As String() = Console.ReadLine().Split(" ")
	    Dim A As Integer = input(0)
	    Dim B As Integer = input(1)
        Console.WriteLine(Math.Max(A+B,Math.Max(A-B,A*B)))
    End Sub
End Module
