import java.util.Scanner;


// 138_a
public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    }

} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    } main {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n1 = scan.nextInt(); n1 scan.nextInt() scan.nextInt scan int n2 = scan.nextInt(); n2 scan.nextInt() scan.nextInt scan System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2)) System.out.println System.out System System.out Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2) Math.max Math Math.max(n1 + n2, n1 - n2) Math.max Math n1 + n2 n1 n2 n1 - n2 n1 n2 n1 * n2 n1 n2 String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    }

} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    }

} Main
import java.util.Scanner;


// 138_a
public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int n1 = scan.nextInt();
        int n2 = scan.nextInt();

        System.out.println(Math.max(Math.max(n1 + n2, n1 - n2), n1 * n2));

    }

}
