import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	}
} import java.util.Scanner; Scanner java.util public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	}
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	} main {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] numberAandB = sc.nextLine().split(" "); numberAandB sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int numberA = Integer.parseInt(numberAandB[0]); numberA Integer.parseInt(numberAandB[0]) Integer.parseInt Integer numberAandB[0] numberAandB 0 int numberB = Integer.parseInt(numberAandB[1]); numberB Integer.parseInt(numberAandB[1]) Integer.parseInt Integer numberAandB[1] numberAandB 1 int result = -100000; result -100000 100000 int plusAB = numberA + numberB; plusAB numberA + numberB numberA numberB int minusAB = numberA - numberB; minusAB numberA - numberB numberA numberB int multiAB = numberA*numberB; multiAB numberA*numberB numberA numberB if(result <= plusAB) {
    		result = plusAB;
    	} result <= plusAB result plusAB {
    		result = plusAB;
    	} result = plusAB result plusAB if(result <= minusAB) {
    		result = minusAB;
    	} result <= minusAB result minusAB {
    		result = minusAB;
    	} result = minusAB result minusAB if(result <= multiAB) {
    		result = multiAB;
    	} result <= multiAB result multiAB {
    		result = multiAB;
    	} result = multiAB result multiAB System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	}
} public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	}
} Main
import java.util.Scanner;

public class Main { 

	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String[] numberAandB = sc.nextLine().split(" ");
    	int numberA = Integer.parseInt(numberAandB[0]);
    	int numberB = Integer.parseInt(numberAandB[1]);
    	int result = -100000;
    	
    	int plusAB = numberA + numberB;
    	int minusAB = numberA - numberB;
    	int multiAB = numberA*numberB;
    	if(result <= plusAB) {
    		result = plusAB;
    	}
    	if(result <= minusAB) {
    		result = minusAB;
    	}
    	if(result <= multiAB) {
    		result = multiAB;
    	}
    	System.out.println(result);
    	
    	
	}
}