import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    }
} import java.util.Scanner; Scanner java.util public class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    } main {
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = a + b; c a + b a b int d = a - b; d a - b a b int e = a * b; e a * b a b if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        } c > d c d {
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        } if(c > e){
                System.out.print(c);
                System.exit(0);
            } c > e c e {
                System.out.print(c);
                System.exit(0);
            } System.out.print(c) System.out.print System.out System System.out c System.exit(0) System.exit System 0 System.out.print(e) System.out.print System.out System System.out e System.exit(0) System.exit System 0 if(d > e){
        	System.out.print(d);
          	System.exit(0);
        } d > e d e {
        	System.out.print(d);
          	System.exit(0);
        } System.out.print(d) System.out.print System.out System System.out d System.exit(0) System.exit System 0 System.out.print(e) System.out.print System.out System System.out e String[] args args public class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    }
} public class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    }
} Main
import java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
 
        int a = scan.nextInt();
        int b = scan.nextInt();
 
        int c = a + b;
        int d = a - b;
        int e = a * b;
 
        if(c > d){
            if(c > e){
                System.out.print(c);
                System.exit(0);
            }
            System.out.print(e);
            System.exit(0);
        }
 		if(d > e){
        	System.out.print(d);
          	System.exit(0);
        }
      	System.out.print(e);
    }
}