import java.util.*;

public class Main {
	public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
}
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
} main {
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int tasu = A+B; tasu A+B A B int hiku = A-B; hiku A-B A B int kakeru = A*B; kakeru A*B A B System.out.println(Math.max(kakeru,Math.max(tasu,hiku))) System.out.println System.out System System.out Math.max(kakeru,Math.max(tasu,hiku)) Math.max Math kakeru Math.max(tasu,hiku) Math.max Math tasu hiku String[] args args public class Main {
	public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
}
} public class Main {
	public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
}
} Main
import java.util.*;

public class Main {
	public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

        int tasu = A+B;
        int hiku = A-B;
        int kakeru = A*B;

		System.out.println(Math.max(kakeru,Math.max(tasu,hiku)));
}
}