import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int c = (a + b);
		int d = (a - b);
		int e = (a * b);

		if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int c = (a + b);
		int d = (a - b);
		int e = (a * b);

		if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int c = (a + b);
		int d = (a - b);
		int e = (a * b);

		if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int c = (a + b);
		int d = (a - b);
		int e = (a * b);

		if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		}
	} 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 sc.close() sc.close sc int c = (a + b); c (a + b) a b int d = (a - b); d (a - b) a b int e = (a * b); e (a * b) a b if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		} c < d c d {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			} d < e d e {
				System.out.println(e);
			} System.out.println(e) System.out.println System.out System System.out e {
				System.out.println(d);
			} System.out.println(d) System.out.println System.out System System.out d if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		} c<e c e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			System.out.println(c);
		} System.out.println(c) System.out.println System.out System System.out c String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();

		int c = (a + b);
		int d = (a - b);
		int e = (a * b);

		if (c < d) {
			if (d < e) {
				System.out.println(e);
			} else {
				System.out.println(d);
			}
		} else if(c<e) {
			System.out.println(e);
		}
		else {
			System.out.println(c);
		}
	}
}
