import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    }
} Main public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    } main {
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    } Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int x = a + b; x a + b a b int y = a - b; y a - b a b int z = a * b; z a * b a b int out = 0; out 0 if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        } x >= y && x >= z x >= y x y x >= z x z {
            out = x;
        } out = x out x if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        } y >= z && y >= x y >= z y z y >= x y x {
            out = y;
        } out = y out y if(z >= x && z >= y){
            out = z;
        } z >= x && z >= y z >= x z x z >= y z y {
            out = z;
        } out = z out z System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int x = a + b;
        int y = a - b;
        int z = a * b;
        int out = 0;
        if(x >= y && x >= z){
            out = x;
        }else if(y >= z && y >= x){
            out = y;
        }else if(z >= x && z >= y){
            out = z;
        }
        System.out.println(out);
    }
}