import java.io.*;
import java.util.*;

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

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next());
    int B = Integer.parseInt(sc.next());
    
    int max = A + B;
    if (A - B > max) {
      max = A - B;
    }
    if (A * B > max)  {
      max = A * B;
    }
    
    System.out.println(max);
  }
}