import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    } main {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    } 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[] ans = new int[3]; ans new int[3] 3 ans[0] = A + B ans[0] ans 0 A + B A B ans[1] = A - B ans[1] ans 1 A - B A B ans[2] = A * B ans[2] ans 2 A * B A B int max = -100000000; max -100000000 100000000 for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            max = Math.max(max, ans[i]);
        } {
            max = Math.max(max, ans[i]);
        } max = Math.max(max, ans[i]) max Math.max(max, ans[i]) Math.max Math max ans[i] ans i 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 sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        
        int A = sc.nextInt();
        int B = sc.nextInt();
        
        int[] ans = new int[3];
        
        ans[0] = A + B;
        ans[1] = A - B;
        ans[2] = A * B;
        
        int max = -100000000;
        for(int i = 0; i < 3; i++){
            max = Math.max(max, ans[i]);
        }
        
        System.out.println(max);
    }
}
