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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    }
} 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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    }
} 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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    } main {
        // Your code here!
        
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        
        int result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    } 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 result[] = new int[3]; result new int[3] 3 result[0] = a+b result[0] result 0 a+b a b result[1] = a-b result[1] result 1 a-b a b result[2] = a*b result[2] result 2 a*b a b int max=result[0]; max result[0] result 0 for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        } int i=0; int i=0; i 0 i<result.length i result.length result result.length i++ i++ i {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        } {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        } int v = result[i]; v result[i] result i if(v > max) {
                max=v;
            } v > max v max {
                max=v;
            } max=v max v System.out.println(max) System.out.println System.out System System.out max 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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    }
} 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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    }
} 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 result[] = new int[3];

        
        result[0] = a+b;
        result[1] = a-b;
        result[2] = a*b;
      
        int max=result[0];

        
        for (int i=0; i<result.length;i++) {
            int v = result[i];
            if(v > max) {
                max=v;
            }
        }
        System.out.println(max);
        
        
        
    }
}
