import java.util.Scanner;

public class Main{
  public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  }
} Main public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    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 x = a + b; x a + b a b int y = a - b; y a - b a b int z = a * b; z a * b a b int max = Math.max(x,y); max Math.max(x,y) Math.max Math x y max = Math.max(max,z) max Math.max(max,z) Math.max Math max z System.out.println(max) System.out.println System.out System System.out max String ars[] ars public class Main{
  public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  }
} public class Main{
  public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String ars[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int x = a + b;
    int y = a - b;
    int z = a * b;
    int max = Math.max(x,y);
    max = Math.max(max,z);  
    System.out.println(max);
  }
}