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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  }
 }
     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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  }
 } Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  } main {
    Scanner sc = new Scanner(System.in);
    
    int a = sc.nextInt();
    int b = sc.nextInt();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  } 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 sc.close() sc.close sc int best = a; best a int[] arr = new int[]{ a + b, a - b, a * b}; arr new int[]{ a + b, a - b, a * b} for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]); int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i best = Math.max(best, arr[i]); best = Math.max(best, arr[i]) best Math.max(best, arr[i]) Math.max Math best arr[i] arr i System.out.println(best) System.out.println System.out System System.out best 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();
    sc.close();
    int best = a;
    int[] arr = new int[]{ a + b, a - b, a * b};
    for(int i = 0; i < arr.length; i++) best = Math.max(best, arr[i]);
    System.out.println(best);
  }
 }
    