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