import java.util.Scanner;


class Main{

    private static int max(int a,int b){
        if(a > b){
            return a;
        }else{
            return b;
        }
    }
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int a = A+B;
        int b = A-B;
        int c = A*B;

        int ans = (max(max(a,b),c));

        System.out.println(ans);
    }
} import java.util.Scanner; Scanner java.util class Main{

    private static int max(int a,int b){
        if(a > b){
            return a;
        }else{
            return b;
        }
    }
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int a = A+B;
        int b = A-B;
        int c = A*B;

        int ans = (max(max(a,b),c));

        System.out.println(ans);
    }
} Main private static int max(int a,int b){
        if(a > b){
            return a;
        }else{
            return b;
        }
    } max {
        if(a > b){
            return a;
        }else{
            return b;
        }
    } if(a > b){
            return a;
        }else{
            return b;
        } a > b a b {
            return a;
        } return a; a {
            return b;
        } return b; b int a a int b b public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int a = A+B;
        int b = A-B;
        int c = A*B;

        int ans = (max(max(a,b),c));

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int a = A+B;
        int b = A-B;
        int c = A*B;

        int ans = (max(max(a,b),c));

        System.out.println(ans);
    } 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 a = A+B; a A+B A B int b = A-B; b A-B A B int c = A*B; c A*B A B int ans = (max(max(a,b),c)); ans (max(max(a,b),c)) max max(a,b) max a b c System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.Scanner;


class Main{

    private static int max(int a,int b){
        if(a > b){
            return a;
        }else{
            return b;
        }
    }
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int A = sc.nextInt();
        int B = sc.nextInt();

        int a = A+B;
        int b = A-B;
        int c = A*B;

        int ans = (max(max(a,b),c));

        System.out.println(ans);
    }
}