import java.util.Arrays;
import java.util.Scanner;

// https://atcoder.jp/contests/abc137/tasks/abc137_a
public class Main {

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	}

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

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	}

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		sc.close();


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] max = new int[3]; max new int[3] 3 max[0] = A * B max[0] max 0 A * B A B max[1] = A - B max[1] max 1 A - B A B max[2] = A + B max[2] max 2 A + B A B Arrays.sort(max) Arrays.sort Arrays max System.out.println(max[2]) System.out.println System.out System System.out max[2] max 2 String[] args args public class Main {

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	}

} public class Main {

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

// https://atcoder.jp/contests/abc137/tasks/abc137_a
public class Main {

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


		int[] max = new int[3];
		//Integer[] max = new Integer[3];
		max[0] = A * B;
		max[1] = A - B;
		max[2] = A + B;

		Arrays.sort(max);
		System.out.println(max[2]);
	}

}
