import java.util.*;

public class Main {
  public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  }
} Main public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  } main {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  } int A A B; B try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    } {
      A = sc.nextInt();
      B = sc.nextInt();
    } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc int sum = A + B; sum A + B A B int diff = A - B; diff A - B A B int prod = A * B; prod A * B A B int cand = Math.max(sum, diff); cand Math.max(sum, diff) Math.max Math sum diff cand = Math.max(cand, prod) cand Math.max(cand, prod) Math.max Math cand prod System.out.println(cand) System.out.println System.out System System.out cand String[] args args public class Main {
  public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  }
} public class Main {
  public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    int A, B;
    try(Scanner sc = new Scanner(System.in)) {
      A = sc.nextInt();
      B = sc.nextInt();
    }
    int sum = A + B;
    int diff = A - B;
    int prod = A * B;
    int cand = Math.max(sum, diff);
    cand = Math.max(cand, prod);
    System.out.println(cand);
  }
}