import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      int A =sc.nextInt();
      int B =sc.nextInt();
      
      int m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    }
} import java.util.Scanner; Scanner 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 m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    }
} Main public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      int A =sc.nextInt();
      int B =sc.nextInt();
      
      int m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    } main {
    
    Scanner sc = new Scanner(System.in);
      
      int A =sc.nextInt();
      int B =sc.nextInt();
      
      int m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    } 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 m1 =A+B; m1 A+B A B int m2 =A-B; m2 A-B A B int m3 =A*B; m3 A*B A B System.out.print(Math.max(m1,Math.max(m2,m3))) System.out.print System.out System System.out Math.max(m1,Math.max(m2,m3)) Math.max Math m1 Math.max(m2,m3) Math.max Math m2 m3 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 m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    }
} public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      int A =sc.nextInt();
      int B =sc.nextInt();
      
      int m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
    
    Scanner sc = new Scanner(System.in);
      
      int A =sc.nextInt();
      int B =sc.nextInt();
      
      int m1 =A+B;
      int m2 =A-B;
      int m3 =A*B;
      
   System.out.print(Math.max(m1,Math.max(m2,m3)));
    }
}