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);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    }
} 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);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    } main {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    } 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 scan.close() scan.close scan List<Integer> list = new ArrayList<>(); list new ArrayList<>() list.add(a + b) list.add list a + b a b list.add(a - b) list.add list a - b a b list.add(a * b) list.add list a * b a b int max = list.parallelStream().max(Comparator.naturalOrder()).get(); max list.parallelStream().max(Comparator.naturalOrder()).get() list.parallelStream().max(Comparator.naturalOrder()).get list.parallelStream().max(Comparator.naturalOrder()) list.parallelStream().max list.parallelStream() list.parallelStream list Comparator.naturalOrder() Comparator.naturalOrder Comparator 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 scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    }
} 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);
        int a = scan.nextInt();
        int b = scan.nextInt();
        scan.close();

        List<Integer> list = new ArrayList<>();
        list.add(a + b);
        list.add(a - b);
        list.add(a * b);

        int max = list.parallelStream().max(Comparator.naturalOrder()).get();
        System.out.println(max);
    }
}