import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();


      int sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      sc.close();

    }
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();


      int sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      sc.close();

    }
} Main public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();


      int sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      sc.close();

    } main {

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();


      int sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      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 sum = a + b; sum a + b a b int sub = a - b; sub a - b a b int mul = a * b; mul a * b a b int max = sum; max sum if(sub > max) {
    	  max = sub;
      } sub > max sub max {
    	  max = sub;
      } max = sub max sub if(mul > max) {
    	  max = mul;
      } mul > max mul max {
    	  max = mul;
      } max = mul max mul System.out.println(max) System.out.println System.out System System.out max 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 sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      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 sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      sc.close();

    }
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();


      int sum = a + b;
      int sub = a - b;
      int mul = a * b;
      
      int max = sum;
      if(sub > max) {
    	  max = sub;
      }
      if(mul > max) {
    	  max = mul;
      }
      
      System.out.println(max);

      sc.close();

    }
}
