import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	} main {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan int B = scan.nextInt(); B scan.nextInt() scan.nextInt scan scan.close() scan.close scan int sum = A + B; sum A + B A B int hiku = A - B; hiku A - B A B int kakeru = A * B; kakeru A * B A B int max = sum; max sum if (hiku > max) {
			max = hiku;
		} hiku > max hiku max {
			max = hiku;
		} max = hiku max hiku if (kakeru > max) {
			max = kakeru;
		} kakeru > max kakeru max {
			max = kakeru;
		} max = kakeru max kakeru System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		scan.close();

		int sum = A + B;
		int hiku = A - B;
		int kakeru = A * B;

		int max = sum;

		if (hiku > max) {
			max = hiku;
		}

		if (kakeru > max) {
			max = kakeru;
		}

		System.out.println(max);

	}

}
