import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    }
} import java.util.Scanner; Scanner 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 sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    } 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 sum1 = a + b; sum1 a + b a b int sum2 = a - b; sum2 a - b a b int sum3 = a * b; sum3 a * b a b if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        } sum1 >= sum2 && sum1 >= sum3 sum1 >= sum2 sum1 sum2 sum1 >= sum3 sum1 sum3 {
            System.out.print(sum1);            
        } System.out.print(sum1) System.out.print System.out System System.out sum1 if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        } sum2 >= sum1 && sum2 >= sum3 sum2 >= sum1 sum2 sum1 sum2 >= sum3 sum2 sum3 {
            System.out.print(sum2);
        } System.out.print(sum2) System.out.print System.out System System.out sum2 if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        } sum3 >= sum1 && sum3 >= sum2 sum3 >= sum1 sum3 sum1 sum3 >= sum2 sum3 sum2 {
            System.out.print(sum3);
        } System.out.print(sum3) System.out.print System.out System System.out sum3 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 sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int sum1 = a + b;
        int sum2 = a - b;
        int sum3 = a * b;
        
        if(sum1 >= sum2 && sum1 >= sum3){
            System.out.print(sum1);            
        }
        else if(sum2 >= sum1 && sum2 >= sum3){
            System.out.print(sum2);
        }
        else if(sum3 >= sum1 && sum3 >= sum2){
            System.out.print(sum3);
        }
        
    }
}