import java.util.*;

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

public class Main {
  static int[] list;
    public static void main(String[] args) throws Exception{
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int x = a + b;
      int y = a - b;
      int z = a * b;
      System.out.println(Math.max(x,Math.max(y,Math.max(z,y))));
      
    }
}