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