import java.util.Arrays;
import java.util.Scanner;

import static java.lang.Math.max;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    }
}
 import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util import static java.lang.Math.max; import static java.lang.Math.max; import static java.lang.Math.max; public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int max = max(a+b, a-b); max max(a+b, a-b) max a+b a b a-b a b max = max(max, a*b) max max(max, a*b) max max a*b a b 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);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    }
} Main
import java.util.Arrays;
import java.util.Scanner;

import static java.lang.Math.max;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int max = max(a+b, a-b);
        max = max(max, a*b);

        System.out.println(max);

    }
}

