import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  }
} Main public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  } main {
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) final int A=sc.nextInt(); A sc.nextInt() sc.nextInt sc final int B=sc.nextInt(); B sc.nextInt() sc.nextInt sc int[] result={A+B,A-B,A*B}; result {A+B,A-B,A*B} A+B A B A-B A B A*B A B Arrays.sort(result) Arrays.sort Arrays result System.out.println(result[2]) System.out.println System.out System System.out result[2] result 2 String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    final int A=sc.nextInt();
    final int B=sc.nextInt();
    int[] result={A+B,A-B,A*B};
    Arrays.sort(result);
    System.out.println(result[2]);
  }
}