import java.util.*;

public class Main {
	public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	}

} Main public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	} main {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	} 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 add = 0; add 0 add = a + b add a + b a b int sub = 0; sub 0 sub = a - b sub a - b a b int product = 0; product 0 product = a * b product a * b a b int x = 0; x 0 x = Math.max(add, sub) x Math.max(add, sub) Math.max Math add sub int y = 0; y 0 y = Math.max(x, product) y Math.max(x, product) Math.max Math x product System.out.println(y) System.out.println System.out System System.out y String[] args args public class Main {
	public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	}

} public class Main {
	public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	}

} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		// practice contest

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int add = 0;
		add = a + b;
		int sub = 0;
		sub = a - b;
		int product = 0;
		product = a * b;
		int x = 0;
		x = Math.max(add, sub);
		int y = 0;
		y = Math.max(x, product);
		System.out.println(y);
	}

}
