
import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

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

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

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

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    } main {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

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

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

} public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

} Main

import java.util.*;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int m = in.nextInt();


        System.out.println(Math.max(n*m, Math.max(n +m , n - m)));

    }

}
