import java.util.*;
public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	}

} import java.util.*; util.* java public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	}

} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int B= sc.nextInt(); B sc.nextInt() sc.nextInt sc int data[] =new int[3]; data new int[3] 3 data[0]=N-B data[0] data 0 N-B N B data[1]=N*B data[1] data 1 N*B N B data[2]=N+B data[2] data 2 N+B N B int max=-100; max -100 100 for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			if(max<data[i]) {
				max=data[i];
			}
			
		} {
			if(max<data[i]) {
				max=data[i];
			}
			
		} if(max<data[i]) {
				max=data[i];
			} max<data[i] max data[i] data i {
				max=data[i];
			} max=data[i] max data[i] data i System.out.println(max) System.out.println System.out System System.out max String args[] args public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	}

} public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	}

} Main
import java.util.*;
public class Main {
	
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int B= sc.nextInt();
		int data[] =new int[3];
		data[0]=N-B;
		data[1]=N*B;
		data[2]=N+B;
		int max=-100;
		for(int i=0;i<3;i++) {
			if(max<data[i]) {
				max=data[i];
			}
			
		}
				
		
		
		
		System.out.println(max);
		
	}

}
