import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  } main {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int number_a number_a number_b number_b answer; answer number_a = Integer.parseInt(sc.next()) number_a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc number_b = Integer.parseInt(sc.next()) number_b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b) answer Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b) Math.max Math Math.max(number_a + number_b, number_a - number_b) Math.max Math number_a + number_b number_a number_b number_a - number_b number_a number_b number_a * number_b number_a number_b System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int number_a, number_b, answer;
    number_a = Integer.parseInt(sc.next());
    number_b = Integer.parseInt(sc.next());
    answer = Math.max(Math.max(number_a + number_b, number_a - number_b), number_a * number_b);
    System.out.println(answer);
  }
}
