import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    } 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 ap = a + b; ap a + b a b int am = a - b; am a - b a b int ak = a * b; ak a * b a b int maxxx = Math.max(ap, am); maxxx Math.max(ap, am) Math.max Math ap am int mayyy = Math.max(maxxx, ak); mayyy Math.max(maxxx, ak) Math.max Math maxxx ak System.out.println(mayyy) System.out.println System.out System System.out mayyy String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        
        int ap = a + b;
        int am = a - b;
        int ak = a * b;
        
       
        int maxxx = Math.max(ap, am);
        
        int mayyy = Math.max(maxxx, ak);
        
        System.out.println(mayyy);
    }
}