import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    }
} Main public static void main(String[] args) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    } main {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int scanA =  scan.nextInt(); scanA scan.nextInt() scan.nextInt scan int scanB =  scan.nextInt(); scanB scan.nextInt() scan.nextInt scan int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB }; total {scanA + scanB ,scanA - scanB ,scanA * scanB } scanA + scanB scanA scanB scanA - scanB scanA scanB scanA * scanB scanA scanB int max = total[0]; max total[0] total 0 for (int maxs : total){
        	max = Math.max(max , maxs );
        } int maxs total {
        	max = Math.max(max , maxs );
        } {
        	max = Math.max(max , maxs );
        } max = Math.max(max , maxs ) max Math.max(max , maxs ) Math.max Math max maxs 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) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
		Scanner scan = new Scanner(System.in);
        int scanA =  scan.nextInt();
        int scanB =  scan.nextInt();
		int[] total = {scanA + scanB ,scanA - scanB ,scanA * scanB };
      	int max = total[0];
		for (int maxs : total){
        	max = Math.max(max , maxs );
        }
      	System.out.println(max);
    }
}
