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 num = A + B;
    int mai = A - B;
    int seki = A * B;
    
    int bigger = 0;
    if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    }
    
    if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    }
  }
} 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 num = A + B;
    int mai = A - B;
    int seki = A * B;
    
    int bigger = 0;
    if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    }
    
    if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    int num = A + B;
    int mai = A - B;
    int seki = A * B;
    
    int bigger = 0;
    if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    }
    
    if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    
    int num = A + B;
    int mai = A - B;
    int seki = A * B;
    
    int bigger = 0;
    if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    }
    
    if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    }
  } 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 num = A + B; num A + B A B int mai = A - B; mai A - B A B int seki = A * B; seki A * B A B int bigger = 0; bigger 0 if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    } num > mai num mai {
      bigger = num;
    } bigger = num bigger num {
      bigger = mai;
    } bigger = mai bigger mai if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    } bigger > seki bigger seki {
      System.out.println(bigger);
    } System.out.println(bigger) System.out.println System.out System System.out bigger {
      System.out.println(seki);
    } System.out.println(seki) System.out.println System.out System System.out seki 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 num = A + B;
    int mai = A - B;
    int seki = A * B;
    
    int bigger = 0;
    if(num > mai) {
      bigger = num;
    }else{
      bigger = mai;
    }
    
    if(bigger > seki) {
      System.out.println(bigger);
    }else{
      System.out.println(seki);
    }
  }
}