
import java.util.Scanner;

public class Main {
    public static boolean debug = true;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static boolean debug = true;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    }
} Main public static boolean debug = true; debug true public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    } 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 int p = a + b; p a + b a b int m = a - b; m a - b a b int d = a * b; d a * b a b if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        } p>m p m {
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        } if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            } p>d p d {
                System.out.println(p);
            } System.out.println(p) System.out.println System.out System System.out p {
                System.out.println(d);
            } System.out.println(d) System.out.println System.out System System.out d {
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        } if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            } m>d m d {
                System.out.println(m);
            } System.out.println(m) System.out.println System.out System System.out m {
                System.out.println(d);
            } System.out.println(d) System.out.println System.out System System.out d String[] args args public class Main {
    public static boolean debug = true;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    }
} public class Main {
    public static boolean debug = true;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    }
} Main

import java.util.Scanner;

public class Main {
    public static boolean debug = true;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int d = a * b;

        if(p>m){
            if(p>d) {
                System.out.println(p);
            }else{
                System.out.println(d);
            }
        }else{
            if(m>d) {
                System.out.println(m);
            }else{
                System.out.println(d);
            }

        }


    }
}
