import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    } main {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int num1 = in.nextInt(); num1 in.nextInt() in.nextInt in int num2 = in.nextInt(); num2 in.nextInt() in.nextInt in int ans; ans ans = Math.max(num1 + num2,num1 - num2) ans Math.max(num1 + num2,num1 - num2) Math.max Math num1 + num2 num1 num2 num1 - num2 num1 num2 ans = Math.max(ans,num1 * num2) ans Math.max(ans,num1 * num2) Math.max Math ans num1 * num2 num1 num2 System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        
        Scanner in = new Scanner(System.in);
        int num1 = in.nextInt();
        int num2 = in.nextInt();
        int ans;
        
        ans = Math.max(num1 + num2,num1 - num2);
        ans = Math.max(ans,num1 * num2);
        System.out.println(ans);

        
    }
}
