import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  }
} import java.util.*; util.* java public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  }
} Main public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  } main {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  } Scanner in=new Scanner(System.in); in new Scanner(System.in) int a=in.nextInt(); a in.nextInt() in.nextInt in int b=in.nextInt(); b in.nextInt() in.nextInt in int max=Math.max(a+b,a*b); max Math.max(a+b,a*b) Math.max Math a+b a b a*b a b max=Math.max(max,a-b) max Math.max(max,a-b) Math.max Math max a-b a b 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[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  }
} public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  }
} Main
import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int a=in.nextInt();
    int b=in.nextInt();
    int max=Math.max(a+b,a*b);
    max=Math.max(max,a-b);
    System.out.println(max);
  }
}