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 plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  }
} 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 plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  }
} Main public static void main(String args[]){
       	Scanner sc = new Scanner(System.in);
    int A = sc.nextInt() ;
    int B = sc.nextInt() ;
    int plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  } main {
       	Scanner sc = new Scanner(System.in);
    int A = sc.nextInt() ;
    int B = sc.nextInt() ;
    int plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  } 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 plus = A+B; plus A+B A B int minus = A-B; minus A-B A B int kakeru = A*B; kakeru A*B A B if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } B>-B B -B B {
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    } if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus); plus<kakeru plus kakeru System.out.println(kakeru) System.out.println System.out System System.out kakeru System.out.println(plus) System.out.println System.out System System.out plus {
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus); minus<kakeru minus kakeru System.out.println(kakeru) System.out.println System.out System System.out kakeru System.out.println(minus) System.out.println System.out System System.out minus 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 plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  }
} public class Main{
  public static void main(String args[]){
       	Scanner sc = new Scanner(System.in);
    int A = sc.nextInt() ;
    int B = sc.nextInt() ;
    int plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  }
} 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 plus = A+B;
    int minus = A-B;
    int kakeru = A*B;
    
    if(B>-B){
      if(plus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(plus);
    }else{
      if(minus<kakeru)
        System.out.println(kakeru);
      else
        System.out.println(minus);
      
    } 
  }
}