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 x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		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);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	} main {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	} 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 x = a + b; x a + b a b int y = a - b; y a - b a b int z = a * b; z a * b a b int result = x; result x if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		} x < y && z < y x < y x y z < y z y {
			result = y;
		} result = y result y if (x < z && y < z) {
			result = z;
		} x < z && y < z x < z x z y < z y z {
			result = z;
		} result = z result z 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);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	}
} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	}
} 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 x = a + b;
		int y = a - b;
		int z = a * b;

		int result = x;
		if (x < y && z < y) {
			result = y;
		} else if (x < z && y < z) {
			result = z;
		}
		System.out.println(result);
	}
}
