import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    } main {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] params = scanner.nextLine().split(" "); params scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " int a = Integer.parseInt(params[0]); a Integer.parseInt(params[0]) Integer.parseInt Integer params[0] params 0 int b = Integer.parseInt(params[1]); b Integer.parseInt(params[1]) Integer.parseInt Integer params[1] params 1 int[] results = {a + b, a - b, a * b}; results {a + b, a - b, a * b} a + b a b a - b a b a * b a b int max = -9999999; max -9999999 9999999 for (int n: results) {
            if (n > max) max = n;
        } int n results {
            if (n > max) max = n;
        } {
            if (n > max) max = n;
        } if (n > max) max = n; n > max n max max = n max n scanner.close() scanner.close scanner 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 scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] params = scanner.nextLine().split(" ");
        int a = Integer.parseInt(params[0]);
        int b = Integer.parseInt(params[1]);
        int[] results = {a + b, a - b, a * b};
        int max = -9999999;
        for (int n: results) {
            if (n > max) max = n;
        }
        scanner.close();
        System.out.println(max);
    }
}