import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        System.out.println(max(A+B,A-B,A*B));

    }
    private static int max(int a,int b,int c){
        if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c;
    }
}
 import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        System.out.println(max(A+B,A-B,A*B));

    }
    private static int max(int a,int b,int c){
        if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c;
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        System.out.println(max(A+B,A-B,A*B));

    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        System.out.println(max(A+B,A-B,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.println(max(A+B,A-B,A*B)) System.out.println System.out System System.out max(A+B,A-B,A*B) max A+B A B A-B A B A*B A B String[] args args private static int max(int a,int b,int c){
        if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c;
    } max {
        if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c;
    } if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c; a>=b&&a>=c a>=b a b a>=c a c {
            return a;
        } return a; a if(b>=c){
            return b;
        }else return c; b>=c b c {
            return b;
        } return b; b return c; c int a a int b b int c c
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        System.out.println(max(A+B,A-B,A*B));

    }
    private static int max(int a,int b,int c){
        if(a>=b&&a>=c){
            return a;
        }else if(b>=c){
            return b;
        }else return c;
    }
}

