import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	}

	private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	}

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

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	}

	private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	} main {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner System.out.println(getMax(a, b)) System.out.println System.out System System.out getMax(a, b) getMax a b String[] args args private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	} getMax {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	} ArrayList<Integer> integers = new ArrayList<Integer>(); integers new ArrayList<Integer>() integers.add(a + b) integers.add integers a + b a b integers.add(a - b) integers.add integers a - b a b integers.add(a * b) integers.add integers a * b a b return Collections.max(integers); Collections.max(integers) Collections.max Collections integers int a a int b b public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	}

	private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	}

	private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		System.out.println(getMax(a, b));
	}

	private static int getMax(int a, int b) {
		ArrayList<Integer> integers = new ArrayList<Integer>();
		integers.add(a + b);
		integers.add(a - b);
		integers.add(a * b);
		return Collections.max(integers);
	}

}