import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      }
} import java.util.*; util.* java public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      }
} Main public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      } main {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num1 = sc.nextInt(); num1 sc.nextInt() sc.nextInt sc int num2 = sc.nextInt(); num2 sc.nextInt() sc.nextInt sc int sum = num1 + num2; sum num1 + num2 num1 num2 int minus = num1 - num2; minus num1 - num2 num1 num2 int multi = num1 * num2; multi num1 * num2 num1 num2 if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            } sum >= minus && sum >= multi sum >= minus sum minus sum >= multi sum multi {
              System.out.println(sum);
            } System.out.println(sum) System.out.println System.out System System.out sum if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            } minus >= sum && minus >= multi minus >= sum minus sum minus >= multi minus multi {
              System.out.println(minus);
            } System.out.println(minus) System.out.println System.out System System.out minus {
              System.out.println(multi);
            } System.out.println(multi) System.out.println System.out System System.out multi String[] args args public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      }
} public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      }
} Main
import java.util.*;

public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            int num1 = sc.nextInt();
            int num2 = sc.nextInt();
            int sum = num1 + num2;
            int minus = num1 - num2;
            int multi = num1 * num2;
            if(sum >= minus && sum >= multi){
              System.out.println(sum);
            } else if(minus >= sum && minus >= multi){
              System.out.println(minus);
            } else {
              System.out.println(multi);
            }
      }
}