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();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    }
} 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();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    } 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 sc.close() sc.close sc int plus = a + b; plus a + b a b int minus = a - b; minus a - b a b int multiple = a * b; multiple a * b a b System.out.println(Math.max(plus,Math.max(minus,multiple))) System.out.println System.out System System.out Math.max(plus,Math.max(minus,multiple)) Math.max Math plus Math.max(minus,multiple) Math.max Math minus multiple 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();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    }
} 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();
        sc.close();
        int plus = a + b;
        int minus = a - b;
        int multiple = a * b;

        System.out.println(Math.max(plus,Math.max(minus,multiple)));
    }
}