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 one = 0;
	    int two = 0;
	    int three = 0;
	    int max = 0;
	    
	    one = a + b;
	    max = one;
	    
	    two = a - b;
	    if(max < two) {
	    	max = two;
	    }
	    
	    three = a * b;
	    if(max < three) {
	    	max = three;
	    }
	    System.out.println(max);
	    
	    
	  }
	  } 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 one = 0;
	    int two = 0;
	    int three = 0;
	    int max = 0;
	    
	    one = a + b;
	    max = one;
	    
	    two = a - b;
	    if(max < two) {
	    	max = two;
	    }
	    
	    three = a * b;
	    if(max < three) {
	    	max = three;
	    }
	    System.out.println(max);
	    
	    
	  }
	  } Main public static void main(String[] args){
	    Scanner sc = new Scanner(System.in);
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int one = 0;
	    int two = 0;
	    int three = 0;
	    int max = 0;
	    
	    one = a + b;
	    max = one;
	    
	    two = a - b;
	    if(max < two) {
	    	max = two;
	    }
	    
	    three = a * b;
	    if(max < three) {
	    	max = three;
	    }
	    System.out.println(max);
	    
	    
	  } main {
	    Scanner sc = new Scanner(System.in);
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int one = 0;
	    int two = 0;
	    int three = 0;
	    int max = 0;
	    
	    one = a + b;
	    max = one;
	    
	    two = a - b;
	    if(max < two) {
	    	max = two;
	    }
	    
	    three = a * b;
	    if(max < three) {
	    	max = three;
	    }
	    System.out.println(max);
	    
	    
	  } 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 one = 0; one 0 int two = 0; two 0 int three = 0; three 0 int max = 0; max 0 one = a + b one a + b a b max = one max one two = a - b two a - b a b if(max < two) {
	    	max = two;
	    } max < two max two {
	    	max = two;
	    } max = two max two three = a * b three a * b a b if(max < three) {
	    	max = three;
	    } max < three max three {
	    	max = three;
	    } max = three max three System.out.println(max) System.out.println System.out System System.out max 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 one = 0;
	    int two = 0;
	    int three = 0;
	    int max = 0;
	    
	    one = a + b;
	    max = one;
	    
	    two = a - b;
	    if(max < two) {
	    	max = two;
	    }
	    
	    three = a * b;
	    if(max < three) {
	    	max = three;
	    }
	    System.out.println(max);
	    
	    
	  }
	  }