import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    }
    
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    }
    
} Main public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    } main {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan int add = A + B ; add A + B A B int sub = A - B ; sub A - B A B int mul = A * B ; mul A * B A B int max; max if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        } add <= sub add sub {
            max = Math.max(sub, mul);
        } max = Math.max(sub, mul) max Math.max(sub, mul) Math.max Math sub mul {
            max = Math.max(add, mul);
        } max = Math.max(add, mul) max Math.max(add, mul) Math.max Math add mul System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    }
    
} public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    }
    
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner scan = new Scanner(System.in);
       int A = scan.nextInt();
       int B = scan.nextInt();
       int add = A + B ;
       int sub = A - B ;
       int mul = A * B ;
       int max;
       if (add <= sub){
            max = Math.max(sub, mul);
        } else {
            max = Math.max(add, mul);
        }
       System.out.println(max);
       
    }
    
}
