import java.util.*;
public class Main {
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  }
} import java.util.*; util.* java public class Main {
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  } main {
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b c; c int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc a = A+B a A+B A B b = A-B b A-B A B c = A*B c A*B A B if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    } (a>=b)&&(a>=c) (a>=b) a b (a>=c) a c {
      System.out.println(a);
      System.exit(0);
    } System.out.println(a) System.out.println System.out System System.out a System.exit(0) System.exit System 0 if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    } (b>=a)&&(b>=c) (b>=a) b a (b>=c) b c {
      System.out.println(b);
      System.exit(0);
    } System.out.println(b) System.out.println System.out System System.out b System.exit(0) System.exit System 0 if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    } (c>=a)&&(c>=b) (c>=a) c a (c>=b) c b {
      System.out.println(c);
      System.exit(0);
    } System.out.println(c) System.out.println System.out System System.out c System.exit(0) System.exit System 0 String[]args args public class Main {
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  }
} public class Main {
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  }
} Main
import java.util.*;
public class Main {
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);

    int a,b,c;

    int A = sc.nextInt();
    int B = sc.nextInt();

    a = A+B;
    b = A-B;
    c = A*B;

    if((a>=b)&&(a>=c)){
      System.out.println(a);
      System.exit(0);
    }
    if((b>=a)&&(b>=c)){
      System.out.println(b);
      System.exit(0);
    }
    if((c>=a)&&(c>=b)){
      System.out.println(c);
      System.exit(0);
    }

  }
}