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 c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    }
} 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 c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt(); 

        int c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    } main {
    
    Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt(); 

        int c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    } 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 c = A+B; c A+B A B int d = A-B; d A-B A B int e = A*B; e A*B A B System.out.println(Math.max(e,Math.max(c,d))) System.out.println System.out System System.out Math.max(e,Math.max(c,d)) Math.max Math e Math.max(c,d) Math.max Math c d 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 c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt(); 

        int c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    }
} 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 c = A+B;
        int d = A-B;
        int e = A*B;
			System.out.println(Math.max(e,Math.max(c,d)));
    }
}
