import java.util.Scanner;

public class Main {
	private static String text;

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

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static String text;

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

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	}
} Main private static String text; text public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	} main {
		Scanner scanner = new Scanner(System.in);

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.nextLine(); line scanner.nextLine() scanner.nextLine scanner String[] lines = line.split(" "); lines line.split(" ") line.split line " " int A = Integer.parseInt(lines[0]); A Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int B = Integer.parseInt(lines[1]); B Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int plus = A + B; plus A + B A B int minus = A - B; minus A - B A B int multi = A * B; multi A * B A B int display; display if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi; plus > minus && plus > multi plus > minus plus minus plus > multi plus multi display = plus display plus if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi; minus > plus && minus > multi minus > plus minus plus minus > multi minus multi display = minus display minus if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi; plus == minus && plus > multi plus == minus plus minus plus > multi plus multi display = plus display plus display = multi display multi System.out.println(display) System.out.println System.out System System.out display String[] args args public class Main {
	private static String text;

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

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	}
} public class Main {
	private static String text;

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

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

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

public class Main {
	private static String text;

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

		String line = scanner.nextLine();
		String[] lines = line.split(" ");
		int A = Integer.parseInt(lines[0]);
		int B = Integer.parseInt(lines[1]);
		int plus = A + B;
		int minus = A - B;
		int multi = A * B;
		int display;

		if (plus > minus && plus > multi)
			display = plus;
		else if (minus > plus && minus > multi)
			display = minus;
		else if(plus == minus && plus > multi)
			display = plus;
		else
			display = multi;

		System.out.println(display);
	}
}
