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();
		int ansA = 0;
		int ansB = 0;
		int ansC = 0;

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

	}
} 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();
		int ansA = 0;
		int ansB = 0;
		int ansC = 0;

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

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

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

	} main {
		Scanner scan = new Scanner(System.in);
		int A = scan.nextInt();
		int B = scan.nextInt();
		int ansA = 0;
		int ansB = 0;
		int ansC = 0;

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

	} 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 int ansA = 0; ansA 0 int ansB = 0; ansB 0 int ansC = 0; ansC 0 ansA = A + B ansA A + B A B ansB = A - B ansB A - B A B ansC = A * B ansC A * B A B System.out.println(Math.max(ansC, Math.max(ansA, ansB))) System.out.println System.out System System.out Math.max(ansC, Math.max(ansA, ansB)) Math.max Math ansC Math.max(ansA, ansB) Math.max Math ansA ansB 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();
		int ansA = 0;
		int ansB = 0;
		int ansC = 0;

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

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

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

	}
} 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();
		int ansA = 0;
		int ansB = 0;
		int ansC = 0;

		ansA = A + B;
		ansB = A - B;
		ansC = A * B;

		System.out.println(Math.max(ansC, Math.max(ansA, ansB)));

	}
}