import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	int max = A+B;
	int m = A-B;
	int k = A*B;
	if(max<m){
	    max=m;
	}
	if(max<k){
	    max=k;
	}
	System.out.println(max);
    }
}
	     import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	int max = A+B;
	int m = A-B;
	int k = A*B;
	if(max<m){
	    max=m;
	}
	if(max<k){
	    max=k;
	}
	System.out.println(max);
    }
} Main public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	int max = A+B;
	int m = A-B;
	int k = A*B;
	if(max<m){
	    max=m;
	}
	if(max<k){
	    max=k;
	}
	System.out.println(max);
    } main {
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	int max = A+B;
	int m = A-B;
	int k = A*B;
	if(max<m){
	    max=m;
	}
	if(max<k){
	    max=k;
	}
	System.out.println(max);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int A = stdIn.nextInt(); A stdIn.nextInt() stdIn.nextInt stdIn int B = stdIn.nextInt(); B stdIn.nextInt() stdIn.nextInt stdIn int max = A+B; max A+B A B int m = A-B; m A-B A B int k = A*B; k A*B A B if(max<m){
	    max=m;
	} max<m max m {
	    max=m;
	} max=m max m if(max<k){
	    max=k;
	} max<k max k {
	    max=k;
	} max=k max k System.out.println(max) System.out.println System.out System System.out max String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
	Scanner stdIn = new Scanner(System.in);
        int A = stdIn.nextInt();
	int B = stdIn.nextInt();
	int max = A+B;
	int m = A-B;
	int k = A*B;
	if(max<m){
	    max=m;
	}
	if(max<k){
	    max=k;
	}
	System.out.println(max);
    }
}
	    
