import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    } main {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan scan.close() scan.close scan String[] strs = str.split(" "); strs str.split(" ") str.split str " " int a = Integer.parseInt(strs[0]); a Integer.parseInt(strs[0]) Integer.parseInt Integer strs[0] strs 0 int b = Integer.parseInt(strs[1]); b Integer.parseInt(strs[1]) Integer.parseInt Integer strs[1] strs 1 int max = a + b; max a + b a b int sub = a - b; sub a - b a b int mul = a * b; mul a * b a b if (max < sub) {
            max = sub;
        } max < sub max sub {
            max = sub;
        } max = sub max sub if (max < mul) {
            max = mul;
        } max < mul max mul {
            max = mul;
        } max = mul max mul System.out.print(max) System.out.print System.out System System.out max String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        scan.close();
        String[] strs = str.split(" ");

        int a = Integer.parseInt(strs[0]);
        int b = Integer.parseInt(strs[1]);

        int max = a + b;
        int sub = a - b;
        int mul = a * b;

        if (max < sub) {
            max = sub;
        }

        if (max < mul) {
            max = mul;
        }

        System.out.print(max);
    }
}
