import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    }
} import java.util.Scanner; Scanner java.util import java.util.stream.IntStream; IntStream java.util.stream public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    }
} Main public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    } main {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    } Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int a = stdin.nextInt(); a stdin.nextInt() stdin.nextInt stdin int b = stdin.nextInt(); b stdin.nextInt() stdin.nextInt stdin int c = IntStream.of(a + b, a - b, a * b).max().getAsInt(); c IntStream.of(a + b, a - b, a * b).max().getAsInt() IntStream.of(a + b, a - b, a * b).max().getAsInt IntStream.of(a + b, a - b, a * b).max() IntStream.of(a + b, a - b, a * b).max IntStream.of(a + b, a - b, a * b) IntStream.of IntStream a + b a b a - b a b a * b a b System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    }
} Main
import java.util.Scanner;
import java.util.stream.IntStream;

public class Main {

    public static void main(String[] args) {
        Scanner stdin = new Scanner(System.in);
        int a = stdin.nextInt();
        int b = stdin.nextInt();
        int c = IntStream.of(a + b, a - b, a * b).max().getAsInt();
        System.out.println(c);
    }
}
