import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String input = scanner.nextLine(); input scanner.nextLine() scanner.nextLine scanner String AB[] = input.split(" "); AB input.split(" ") input.split input " " int A = Integer.parseInt(AB[0]); A Integer.parseInt(AB[0]) Integer.parseInt Integer AB[0] AB 0 int B = Integer.parseInt(AB[1]); B Integer.parseInt(AB[1]) Integer.parseInt Integer AB[1] AB 1 int[] result = new int[3]; result new int[3] 3 result[0] = A + B result[0] result 0 A + B A B result[1] = A - B result[1] result 1 A - B A B result[2] = A * B result[2] result 2 A * B A B int max = result[0]; max result[0] result 0 for (int i:result){
			if(i > max) {
				max = i;
			}
		} int i result {
			if(i > max) {
				max = i;
			}
		} {
			if(i > max) {
				max = i;
			}
		} if(i > max) {
				max = i;
			} i > max i max {
				max = i;
			} max = i max i 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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);

		String input = scanner.nextLine();

		String AB[] = input.split(" ");

		int A = Integer.parseInt(AB[0]);

		int B = Integer.parseInt(AB[1]);

		int[] result = new int[3];

		result[0] = A + B;

		result[1] = A - B;

		result[2] = A * B;

		int max = result[0];

		for (int i:result){
			if(i > max) {
				max = i;
			}
		}

		System.out.println(max);
	}

}