import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    } main {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n1 = sc.nextInt(); n1 sc.nextInt() sc.nextInt sc int n2 = sc.nextInt(); n2 sc.nextInt() sc.nextInt sc int add = n1+n2; add n1+n2 n1 n2 int mul = n1*n2; mul n1*n2 n1 n2 int sub = n1-n2; sub n1-n2 n1 n2 if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub); add>mul &&add>sub add>mul add mul add>sub add sub System.out.println(add) System.out.println System.out System System.out add if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub); mul>sub mul sub System.out.println(mul) System.out.println System.out System System.out mul System.out.println(sub) System.out.println System.out System System.out sub String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n1 = sc.nextInt();
        int n2 = sc.nextInt();
         int add = n1+n2;
         int mul = n1*n2;
         int sub = n1-n2;
        // System.out.println(add);
        // System.out.println(mul);
        // System.out.println(sub);
         if(add>mul &&add>sub)System.out.println(add);
         else if(mul>sub)
            System.out.println(mul);
         else System.out.println(sub);
         
    }
}
