import java.util.Arrays;
import java.util.Scanner;

public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    }
} import java.util.Arrays; Arrays 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 hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    } main {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int hoge = Integer.parseInt(sc.next()); hoge Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int fuga= Integer.parseInt(sc.next()); fuga Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc sc.close() sc.close sc System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga))) System.out.println System.out System System.out Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)) Math.max Math hoge+fuga hoge fuga Math.max(hoge-fuga, hoge*fuga) Math.max Math hoge-fuga hoge fuga hoge*fuga hoge fuga String[] args args public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    }
} public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main { 
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int hoge = Integer.parseInt(sc.next());
        int fuga= Integer.parseInt(sc.next());
        sc.close();
        System.out.println(Math.max(hoge+fuga, Math.max(hoge-fuga, hoge*fuga)));
    }
}