 
import java.io.*; 
import java.util.*; 
 
public class Main
{ 
    public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } 
}  import java.io.*; io.* java import java.util.*; util.* java public class Main
{ 
    public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } 
} Main public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } main { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int add = A + B; add A + B A B int subtract = A-B; subtract A-B A B int multiply = A*B; multiply A*B A B if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		} add >= subtract && add >= multiply add >= subtract add subtract add >= multiply add multiply {
			
			System.out.println(add);
			
		} System.out.println(add) System.out.println System.out System System.out add if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		} subtract >= add && subtract >= multiply subtract >= add subtract add subtract >= multiply subtract multiply {

			System.out.println(subtract);

		} System.out.println(subtract) System.out.println System.out System System.out subtract {

			System.out.println(multiply);

		} System.out.println(multiply) System.out.println System.out System System.out multiply String args[] args public class Main
{ 
    public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } 
} public class Main
{ 
    public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } 
} Main
 
import java.io.*; 
import java.util.*; 
 
public class Main
{ 
    public static void main(String args[]) 
    { 
      
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int add = A + B;
		int subtract = A-B;
		int multiply = A*B;
		
		
		if(add >= subtract && add >= multiply){
			
			System.out.println(add);
			
		} else if(subtract >= add && subtract >= multiply){

			System.out.println(subtract);

		}else {

			System.out.println(multiply);

		}			


	  
    } 
} 
