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

class Main {
    public static void main (String[] args) {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        
        List<Integer> res_list = new ArrayList<Integer>();
        res_list.add(A+B);
        res_list.add(A-B);
        res_list.add(A*B);
        Collections.sort(res_list, Collections.reverseOrder());
        System.out.println(res_list.get(0));
    }
} 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 class Main {
    public static void main (String[] args) {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        
        List<Integer> res_list = new ArrayList<Integer>();
        res_list.add(A+B);
        res_list.add(A-B);
        res_list.add(A*B);
        Collections.sort(res_list, Collections.reverseOrder());
        System.out.println(res_list.get(0));
    }
} Main public static void main (String[] args) {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        
        List<Integer> res_list = new ArrayList<Integer>();
        res_list.add(A+B);
        res_list.add(A-B);
        res_list.add(A*B);
        Collections.sort(res_list, Collections.reverseOrder());
        System.out.println(res_list.get(0));
    } main {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        
        List<Integer> res_list = new ArrayList<Integer>();
        res_list.add(A+B);
        res_list.add(A-B);
        res_list.add(A*B);
        Collections.sort(res_list, Collections.reverseOrder());
        System.out.println(res_list.get(0));
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in List<Integer> res_list = new ArrayList<Integer>(); res_list new ArrayList<Integer>() res_list.add(A+B) res_list.add res_list A+B A B res_list.add(A-B) res_list.add res_list A-B A B res_list.add(A*B) res_list.add res_list A*B A B Collections.sort(res_list, Collections.reverseOrder()) Collections.sort Collections res_list Collections.reverseOrder() Collections.reverseOrder Collections System.out.println(res_list.get(0)) System.out.println System.out System System.out res_list.get(0) res_list.get res_list 0 String[] args args

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

class Main {
    public static void main (String[] args) {
        Scanner in = new Scanner(System.in);
        int A = in.nextInt();
        int B = in.nextInt();
        
        List<Integer> res_list = new ArrayList<Integer>();
        res_list.add(A+B);
        res_list.add(A-B);
        res_list.add(A*B);
        Collections.sort(res_list, Collections.reverseOrder());
        System.out.println(res_list.get(0));
    }
}