import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    }
} import java.util.Scanner; Scanner 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[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    } 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[] result = {a + b, a - b, a * b}; result {a + b, a - b, a * b} a + b a b a - b a b a * b a b int max = result[0]; max result[0] result 0 for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (max < result[i]) {
                max = result[i];
            }
        } {
            if (max < result[i]) {
                max = result[i];
            }
        } if (max < result[i]) {
                max = result[i];
            } max < result[i] max result[i] result i {
                max = result[i];
            } max = result[i] max result[i] result i System.out.println(max) System.out.println System.out System System.out max sc.close() sc.close sc 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[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int[] result = {a + b, a - b, a * b};
        int max = result[0];
        for (int i = 0; i < 3; i++) {
            if (max < result[i]) {
                max = result[i];
            }
        }
        System.out.println(max);
        sc.close();
    }
}