import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	}

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

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	}

} Main public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	} main {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int a=stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b=stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int c=a+b; c a+b a b int d=a-b; d a-b a b int e=a*b; e a*b a b int max=c; max c if(max<d) {
			max=d;
		} max<d max d {
			max=d;
		} max=d max d if(max<e){
			max=e;
		} max<e max e {
			max=e;
		} max=e max e 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) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	}

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

	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();

		int c=a+b;
		int d=a-b;
		int e=a*b;

		int max=c;
		if(max<d) {
			max=d;
		}
		if(max<e){
			max=e;
		}
		System.out.println(max);
	}

}
