import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  } main {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  } 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 x x y y z z s; s x=a+b x a+b a b y=a-b y a-b a b z=a*b z a*b a b if(x>y){
      s=x;
    }else{
      s=y;
    } x>y x y {
      s=x;
    } s=x s x {
      s=y;
    } s=y s y if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    } s>z s z {
      System.out.println(s);
    } System.out.println(s) System.out.println System.out System System.out s {
      System.out.println(z);
    } System.out.println(z) System.out.println System.out System System.out z String[] args args public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int x,y,z,s;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>y){
      s=x;
    }else{
      s=y;
    }
    if(s>z){
      System.out.println(s);
    }else{
      System.out.println(z);
    }
  }
}
