import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    }

    private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    }
} import java.util.Scanner; Scanner 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();
        System.out.print(maxAnswer(a, b));
    }

    private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    } 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 System.out.print(maxAnswer(a, b)) System.out.print System.out System System.out maxAnswer(a, b) maxAnswer a b String[] args args private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    } maxAnswer {
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    } int plus = a + b; plus a + b a b int minus = a - b; minus a - b a b int multiply = a * b; multiply a * b a b return Math.max(plus, Math.max(minus, multiply)); Math.max(plus, Math.max(minus, multiply)) Math.max Math plus Math.max(minus, multiply) Math.max Math minus multiply Integer a a Integer b b public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    }

    private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    }

    private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        System.out.print(maxAnswer(a, b));
    }

    private static Integer maxAnswer(Integer a, Integer b){
        int plus = a + b;
        int minus = a - b;
        int multiply = a * b;
        return Math.max(plus, Math.max(minus, multiply));
    }
}
