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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    System.out.println(max);
  } main {
    Scanner sc=new Scanner(System.in);
    int a=sc.nextInt();
    int b=sc.nextInt();

    int t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    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 t1=a+b; t1 a+b a b int t2=a-b; t2 a-b a b int t3=a*b; t3 a*b a b int max=Math.max(t1,t2); max Math.max(t1,t2) Math.max Math t1 t2 max=Math.max(max,t3) max Math.max(max,t3) Math.max Math max t3 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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    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 t1=a+b;
    int t2=a-b;
    int t3=a*b;

    int max=Math.max(t1,t2);
    max=Math.max(max,t3);

    System.out.println(max);
  }
}
