import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	} main {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int plus		= a+b; plus a+b a b int minus		= a-b; minus a-b a b int multiplied	= a*b; multiplied a*b a b int result		= 0; result 0 if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		} plus > minus plus minus {
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		} if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			} plus > multiplied plus multiplied {
				result = plus;
			} result = plus result plus {
				result = multiplied;
			} result = multiplied result multiplied if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		} minus > multiplied minus multiplied {
			result = minus;
		} result = minus result minus {
			result = multiplied;
		} result = multiplied result multiplied 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 scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		int plus		= a+b;
		int minus		= a-b;
		int multiplied	= a*b;

		int result		= 0;

		if(plus > minus){
			if(plus > multiplied){
				result = plus;
			}else{
				result = multiplied;
			}
		}else if(minus > multiplied){
			result = minus;
		}else{
			result = multiplied;
		}

		System.out.println(result);
	}
}