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 list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    }
} 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 list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();
        int list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();
        int list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[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 list[] = {A + B, A - B, A * B}; list {A + B, A - B, A * B} A + B A B A - B A B A * B A B int max = list[0]; max list[0] list 0 for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        } int i=1; int i=1; i 1 i<3 i 3 i++ i++ i {
            max = Math.max(max, list[i]);
        } {
            max = Math.max(max, list[i]);
        } max = Math.max(max, list[i]) max Math.max(max, list[i]) Math.max Math max list[i] list 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){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();
        int list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();
        int list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    }
} 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 list[] = {A + B, A - B, A * B};
        int max = list[0];

        for(int i=1; i<3; i++){
            max = Math.max(max, list[i]);
        }
        System.out.println(max);
    }
}