import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	} main {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A=sc.nextInt() A sc.nextInt() sc.nextInt sc B=sc.nextInt(); B sc.nextInt() sc.nextInt sc int temp = A+B; temp A+B A B if(A-B > temp) temp = A-B; A-B > temp A-B A B temp temp = A-B temp A-B A B if(A*B > temp) temp = A*B; A*B > temp A*B A B temp temp = A*B temp A*B A B System.out.println(temp) System.out.println System.out System System.out temp String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		int temp = A+B;
		if(A-B > temp) temp = A-B;
		if(A*B > temp) temp = A*B;
		System.out.println(temp);
	}
} Main
import java.util.Scanner;

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