import 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 o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    System.out.println(max);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    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 o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    System.out.println(max);
  } main {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    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 o1=a+b; o1 a+b a b int o2=a-b; o2 a-b a b int o3=a*b; o3 a*b a b int max=Math.max(Math.max(o1,o2),o3); max Math.max(Math.max(o1,o2),o3) Math.max Math Math.max(o1,o2) Math.max Math o1 o2 o3 System.out.println(max) System.out.println System.out System System.out max 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 o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    System.out.println(max);
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();
    int o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    System.out.println(max);
  }
} Main
import 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 o1=a+b;
    int o2=a-b;
    int o3=a*b;

    int max=Math.max(Math.max(o1,o2),o3);

    System.out.println(max);
  }
}
