import java.util.Scanner;

class Main {

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

	public static void main(String[] args) {
		Scanner ipt = new Scanner(System.in);
		int a = ipt.nextInt(), b = ipt.nextInt(), add, sub, mul;
		add = a + b;
		sub = a - b;
		mul = a * b;
		if (add >= sub)
			if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add);
		if (sub > add)
			if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub);
	}
} Main public static void main(String[] args) {
		Scanner ipt = new Scanner(System.in);
		int a = ipt.nextInt(), b = ipt.nextInt(), add, sub, mul;
		add = a + b;
		sub = a - b;
		mul = a * b;
		if (add >= sub)
			if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add);
		if (sub > add)
			if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub);
	} main {
		Scanner ipt = new Scanner(System.in);
		int a = ipt.nextInt(), b = ipt.nextInt(), add, sub, mul;
		add = a + b;
		sub = a - b;
		mul = a * b;
		if (add >= sub)
			if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add);
		if (sub > add)
			if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub);
	} Scanner ipt = new Scanner(System.in); ipt new Scanner(System.in) int a = ipt.nextInt() a ipt.nextInt() ipt.nextInt ipt b = ipt.nextInt() b ipt.nextInt() ipt.nextInt ipt add add sub sub mul; mul add = a + b add a + b a b sub = a - b sub a - b a b mul = a * b mul a * b a b if (add >= sub)
			if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add); add >= sub add sub if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add); mul >= add mul add System.out.println(mul) System.out.println System.out System System.out mul System.out.println(add) System.out.println System.out System System.out add if (sub > add)
			if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub); sub > add sub add if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub); mul >= sub mul sub System.out.println(mul) System.out.println System.out System System.out mul System.out.println(sub) System.out.println System.out System System.out sub String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner ipt = new Scanner(System.in);
		int a = ipt.nextInt(), b = ipt.nextInt(), add, sub, mul;
		add = a + b;
		sub = a - b;
		mul = a * b;
		if (add >= sub)
			if (mul >= add)
				System.out.println(mul);
			else
				System.out.println(add);
		if (sub > add)
			if (mul >= sub)
				System.out.println(mul);
			else
				System.out.println(sub);
	}
}