import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	} main {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int a a b; b a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc int n1=a+b; n1 a+b a b int n2=a-b; n2 a-b a b int n3=a*b; n3 a*b a b if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		} n1>=n2&&n1>=n3 n1>=n2 n1 n2 n1>=n3 n1 n3 {
			System.out.println(n1);
		} System.out.println(n1) System.out.println System.out System System.out n1 if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		} n2>=n3 n2 n3 {
			System.out.println(n2);
		} System.out.println(n2) System.out.println System.out System System.out n2 {
			
			System.out.println(n3);
		
		} System.out.println(n3) System.out.println System.out System System.out n3 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc=new Scanner(System.in);
		int a,b;
		a=sc.nextInt();
		b=sc.nextInt();
		int n1=a+b;
		int n2=a-b;
		int n3=a*b;
		if(n1>=n2&&n1>=n3){
			System.out.println(n1);
		}else if(n2>=n3){
			System.out.println(n2);
		}else{
			
			System.out.println(n3);
		
		}
		
		
	}

}
