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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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 sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc 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 Collections.sort(list) Collections.sort Collections list System.out.println(list.get(2)) System.out.println System.out System System.out list.get(2) list.get list 2 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        List<Integer> list = new ArrayList<>();
        list.add(a+b);
        list.add(a-b);
        list.add(a*b);
        Collections.sort(list);
        System.out.println(list.get(2));
    }
}