import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    }
} import java.util.*; util.* java import java.lang.*; lang.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    } 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 r1 = a + b; r1 a + b a b int r2 = a - b; r2 a - b a b int r3 = a * b; r3 a * b a b if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        } r1<r2 r1 r2 {
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        } if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            } r2<r3 r2 r3 {
                System.out.println(r3);
            } System.out.println(r3) System.out.println System.out System System.out r3 {
                System.out.println(r2);
            } System.out.println(r2) System.out.println System.out System System.out r2 {
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        } if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            } r1<r3 r1 r3 {
                System.out.println(r3);
            } System.out.println(r3) System.out.println System.out System System.out r3 {
                System.out.println(r1);
            } System.out.println(r1) System.out.println System.out System System.out r1 sc.close() sc.close sc 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();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    }
} Main
import java.util.*;
import java.lang.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int r1 = a + b;
        int r2 = a - b;
        int r3 = a * b;
        if(r1<r2){
            if(r2<r3){
                System.out.println(r3);
            }else{
                System.out.println(r2);
            }
        }else{
            if(r1<r3){
                System.out.println(r3);
            }else{
                System.out.println(r1);
            }
        }
        sc.close();
    }
}