import java.io.*;
import java.util.*;
import java.util.stream.*;

public class Main {
    public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    public static final PrintStream out = System.out;

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

    public static void main(String[] args) {
        int a = in.nextInt();
        int b = in.nextInt();
        out.println(IntStream.of(a + b, a - b, a * b).max().getAsInt());
    }
} Main public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) public static final PrintStream out = System.out; out System.out System System.out public static void main(String[] args) {
        int a = in.nextInt();
        int b = in.nextInt();
        out.println(IntStream.of(a + b, a - b, a * b).max().getAsInt());
    } main {
        int a = in.nextInt();
        int b = in.nextInt();
        out.println(IntStream.of(a + b, a - b, a * b).max().getAsInt());
    } int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in out.println(IntStream.of(a + b, a - b, a * b).max().getAsInt()) out.println out 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 String[] args args public class Main {
    public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    public static final PrintStream out = System.out;

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

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

public class Main {
    public static final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    public static final PrintStream out = System.out;

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