import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	}	
}	 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	}	
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	} 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 int cal1 = A + B; cal1 A + B A B int cal2 = A - B; cal2 A - B A B int cal3 = A * B; cal3 A * B A B int max = 0; max 0 if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    } cal1 >= Math.max(cal2, cal3) cal1 Math.max(cal2, cal3) Math.max Math cal2 cal3 {
	    	max = cal1;
	    } max = cal1 max cal1 if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    } cal2 >= Math.max(cal3, cal1) cal2 Math.max(cal3, cal1) Math.max Math cal3 cal1 {
	    	max = cal2;
	    } max = cal2 max cal2 {
	    	max = cal3;
	    } max = cal3 max cal3 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 A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	}	
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	}	
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    int A = sc.nextInt();
	    int B = sc.nextInt();
	    
	    int cal1 = A + B;
	    int cal2 = A - B;
	    int cal3 = A * B;
	    
	    int max = 0;
	    
	    if (cal1 >= Math.max(cal2, cal3)) {
	    	max = cal1;
	    } else if (cal2 >= Math.max(cal3, cal1)) {
	    	max = cal2;
	    } else {
	    	max = cal3;
	    }
	    System.out.println(max);
	}	
}	