import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A A B; B A = scan.nextInt() A scan.nextInt() scan.nextInt scan B = scan.nextInt() B scan.nextInt() scan.nextInt scan scan.close() scan.close scan int a a b b c; c a = A + B a A + B A B b = A * B b A * B A B c = A - B c A - B A B if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		} a > b a b {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		} if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			} a > c a c {
				System.out.println(a);
			} System.out.println(a) System.out.println System.out System System.out a {
				System.out.println(c);
			} System.out.println(c) System.out.println System.out System System.out c {
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		} if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			} b>c b c {
				System.out.println(b);
			} System.out.println(b) System.out.println System.out System System.out b {
				System.out.println(c);
			} System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int A, B;
		A = scan.nextInt();
		B = scan.nextInt();
		scan.close();
		int a, b, c;
		a = A + B;
		b = A * B;
		c = A - B;
		if (a > b) {
			if (a > c) {
				System.out.println(a);
			}else{
				System.out.println(c);
			}
		}else{
			if(b>c) {
				System.out.println(b);
			}else {
				System.out.println(c);
			}
		}
	}
}
