import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	}
	

} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	}
	

} Main public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	} main {
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	} Scanner pw = new Scanner(System.in); pw new Scanner(System.in) int a = pw.nextInt(); a pw.nextInt() pw.nextInt pw int b = pw.nextInt(); b pw.nextInt() pw.nextInt pw int c = a+b; c a+b a b int d = a-b; d a-b a b int e = a*b; e a*b a b int max = c; max c if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);} max>=d&&max>=e max>=d max d max>=e max e {System.out.print(max);} System.out.print(max) System.out.print System.out System System.out max if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);} d>=max&&d>=e d>=max d max d>=e d e {System.out.print(d);} System.out.print(d) System.out.print System.out System System.out d {System.out.print(e);} System.out.print(e) System.out.print System.out System System.out e String args[] args public class Main{
	public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	}
	

} public class Main{
	public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	}
	

} Main
import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner pw = new Scanner(System.in);
		int a = pw.nextInt();
		int b = pw.nextInt();
		int c = a+b;
		int d = a-b;
		int e = a*b;
		int max = c;
		if(max>=d&&max>=e){System.out.print(max);}
		else if(d>=max&&d>=e){System.out.print(d);}
		else{System.out.print(e);}
		
	}
	

}
