import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String[] inputAB = scan.nextLine().split(" "); inputAB scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " Integer a = Integer.valueOf(inputAB[0]); a Integer.valueOf(inputAB[0]) Integer.valueOf Integer inputAB[0] inputAB 0 Integer b = Integer.valueOf(inputAB[1]); b Integer.valueOf(inputAB[1]) Integer.valueOf Integer inputAB[1] inputAB 1 List<Integer> results = new ArrayList<Integer>(); results new ArrayList<Integer>() results.add(a + b) results.add results a + b a b results.add(a - b) results.add results a - b a b results.add(a * b) results.add results a * b a b results.sort(Comparator.reverseOrder()) results.sort results Comparator.reverseOrder() Comparator.reverseOrder Comparator System.out.println(results.get(0)) System.out.println System.out System System.out results.get(0) results.get results 0 scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    }
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String[] inputAB = scan.nextLine().split(" ");
        Integer a = Integer.valueOf(inputAB[0]);
        Integer b = Integer.valueOf(inputAB[1]);

        List<Integer> results = new ArrayList<Integer>();
        results.add(a + b);
        results.add(a - b);
        results.add(a * b);
        results.sort(Comparator.reverseOrder());

        System.out.println(results.get(0));
        scan.close();
    }
}