
import java.util.Scanner;

/**
 *
 * @author cs18097
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    }
    
} Main /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    } main {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    } 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 d = a-b; d a-b a b int c = a*b; c a*b a b if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        } p>d p d {
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            } c>p c p {
                System.out.print(c);
                return;
            } System.out.print(c) System.out.print System.out System System.out c return; {
                System.out.print(p);
                return;
            } System.out.print(p) System.out.print System.out System System.out p return; {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        } if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            } c>d c d {
                System.out.print(c);
                return;
            } System.out.print(c) System.out.print System.out System System.out c return; {
                System.out.print(d);
                return;
            } System.out.print(d) System.out.print System.out System System.out d return; String[] args args public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    }
    
} public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    }
    
} Main

import java.util.Scanner;

/**
 *
 * @author cs18097
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int p = a+b;
        int d = a-b;
        int c = a*b;
        if(p>d){
            if(c>p){
                System.out.print(c);
                return;
            }else{
                System.out.print(p);
                return;
            }
        } else {
            if(c>d){
                System.out.print(c);
                return;
            } else{
                System.out.print(d);
                return;
            }
        }
    }
    
}
