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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	} 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 Integer[] b = new Integer[3]; b new Integer[3] 3 b[0]  =A+B b[0] b 0 A+B A B b[1] =A-B b[1] b 1 A-B A B b[2] =A*B b[2] b 2 A*B A B Arrays.sort(b,Comparator.reverseOrder()) Arrays.sort Arrays b Comparator.reverseOrder() Comparator.reverseOrder Comparator System.out.println(b[0]) System.out.println System.out System System.out b[0] b 0 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		Integer[] b = new Integer[3];
		b[0]  =A+B;
		b[1] =A-B;
		b[2] =A*B;
		Arrays.sort(b,Comparator.reverseOrder());
		System.out.println(b[0]);
		
	}

}
