import java.util.Scanner;

public class Main {

	private static Scanner scan = new Scanner(System.in);

	public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	private static Scanner scan = new Scanner(System.in);

	public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	}
} Main private static Scanner scan = new Scanner(System.in); scan new Scanner(System.in) public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	} main {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	} String[] firstLine = scan.nextLine().split(" "); firstLine scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " int a = Integer.valueOf(firstLine[0]); a Integer.valueOf(firstLine[0]) Integer.valueOf Integer firstLine[0] firstLine 0 int b = Integer.valueOf(firstLine[1]); b Integer.valueOf(firstLine[1]) Integer.valueOf Integer firstLine[1] firstLine 1 int ans = a + b; ans a + b a b if (ans < a - b) {
			ans = a - b;
		} ans < a - b ans a - b a b {
			ans = a - b;
		} ans = a - b ans a - b a b if (ans < a * b) {
			ans = a * b;
		} ans < a * b ans a * b a b {
			ans = a * b;
		} ans = a * b ans a * b a b System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	private static Scanner scan = new Scanner(System.in);

	public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	}
} public class Main {

	private static Scanner scan = new Scanner(System.in);

	public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	}
} Main
import java.util.Scanner;

public class Main {

	private static Scanner scan = new Scanner(System.in);

	public static void main(String[] args) {
		String[] firstLine = scan.nextLine().split(" ");
		int a = Integer.valueOf(firstLine[0]);
		int b = Integer.valueOf(firstLine[1]);
		int ans = a + b;
		if (ans < a - b) {
			ans = a - b;
		}
		if (ans < a * b) {
			ans = a * b;
		}

		System.out.println(ans);
	}
}
