import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    } main {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int out = a + b; out a + b a b if (out < a - b) out = a - b; out < a - b out a - b a b out = a - b out a - b a b if (out < a * b) out = a * b; out < a * b out a * b a b out = a * b out a * b a b System.out.print(out) System.out.print System.out System System.out out String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);

        int a = s.nextInt();
        int b = s.nextInt();

        int out = a + b;
        if (out < a - b) out = a - b;
        if (out < a * b) out = a * b;
        System.out.print(out);
    }

}
