import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        int plus = A + B;
        int minus = A - B;
        int multi = A * B;

        int max = Math.max(plus,Math.max(minus,multi));
        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        int plus = A + B;
        int minus = A - B;
        int multi = A * B;

        int max = Math.max(plus,Math.max(minus,multi));
        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 plus = A + B;
        int minus = A - B;
        int multi = A * B;

        int max = Math.max(plus,Math.max(minus,multi));
        System.out.println(max);
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        int plus = A + B;
        int minus = A - B;
        int multi = A * B;

        int max = Math.max(plus,Math.max(minus,multi));
        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 plus = A + B; plus A + B A B int minus = A - B; minus A - B A B int multi = A * B; multi A * B A B int max = Math.max(plus,Math.max(minus,multi)); max Math.max(plus,Math.max(minus,multi)) Math.max Math plus Math.max(minus,multi) Math.max Math minus multi System.out.println(max) System.out.println System.out System System.out max String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();

        int plus = A + B;
        int minus = A - B;
        int multi = A * B;

        int max = Math.max(plus,Math.max(minus,multi));
        System.out.println(max);
    }
}