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