import java.util.Arrays;
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 ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	}
} import java.util.Arrays; Arrays java.util 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 ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	} main {
		Scanner scan = new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	} 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 ans[]=new int[3]; ans new int[3] 3 ans[0]=a+b ans[0] ans 0 a+b a b ans[1]=a-b ans[1] ans 1 a-b a b ans[2]=a*b ans[2] ans 2 a*b a b Arrays.sort(ans) Arrays.sort Arrays ans System.out.print(ans[2]) System.out.print System.out System System.out ans[2] ans 2 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 ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		int ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	}
} Main
import java.util.Arrays;
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 ans[]=new int[3];
		ans[0]=a+b;
		ans[1]=a-b;
		ans[2]=a*b;
	    Arrays.sort(ans);
	    System.out.print(ans[2]);
	}
}
