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 wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    }

} 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 wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    }

} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        int wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    } main {
    	Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        int wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    } 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 wa = 0; wa 0 int seki = 0; seki 0 int sa = 0; sa 0 int unko = 0; unko 0 wa = A+B wa A+B A B seki = A*B seki A*B A B sa = A-B sa A-B A B if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        } wa>seki&&wa>sa wa>seki wa seki wa>sa wa sa {
        	System.out.println(wa);
        } System.out.println(wa) System.out.println System.out System System.out wa if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        } seki>wa&&seki>sa seki>wa seki wa seki>sa seki sa {
        	System.out.println(seki);
        } System.out.println(seki) System.out.println System.out System System.out seki {
        	System.out.println(sa);
        } System.out.println(sa) System.out.println System.out System System.out sa 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 wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    }

} public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        int wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    }

} Main
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 wa = 0;
        int seki = 0;
        int sa = 0;
        int unko = 0;
        
        wa = A+B;
        seki = A*B;
        sa = A-B;
       	
      /*  if(wa>seki){
        	if(wa>sa){
                System.out.println(wa);
            }else if(seki>){
            	System.out.println(seki);
            }
        }*/
        
        if(wa>seki&&wa>sa){
        	System.out.println(wa);
        }else if(seki>wa&&seki>sa){
        	System.out.println(seki);
        }else{
        	System.out.println(sa);
        }
    }

}