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 plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	}
} 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 plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();

		int plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	} main {
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();

		int plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	} 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 plus = A + B; plus A + B A B int minus = A - B; minus A - B A B int kakeru = A * B; kakeru A * B A B int res = Math.max(plus, minus); res Math.max(plus, minus) Math.max Math plus minus if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		} res > kakeru res kakeru {
			System.out.println(res);
		} System.out.println(res) System.out.println System.out System System.out res {
			System.out.println(kakeru);
		} System.out.println(kakeru) System.out.println System.out System System.out kakeru 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 plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int A = sc.nextInt();
		int B = sc.nextInt();

		int plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	}
} 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 plus = A + B;
		int minus = A - B;
		int kakeru = A * B;

		int res = Math.max(plus, minus);

		if(res > kakeru){
			System.out.println(res);
		} else {
			System.out.println(kakeru);
		}
		
	}
}
