
import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  }
} Main public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  } main {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  } @SuppressWarnings("resource")
    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 ans = Math.max(A+B, A-B); ans Math.max(A+B, A-B) Math.max Math A+B A B A-B A B System.out.println(Math.max(ans, A*B)) System.out.println System.out System System.out Math.max(ans, A*B) Math.max Math ans A*B A B String[] args args public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  }
} public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  }
} Main

import java.util.*;

public class Main {
  public static void main(String[] args) {
    @SuppressWarnings("resource")
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    int ans = Math.max(A+B, A-B);

    System.out.println(Math.max(ans, A*B));
  }
}
