import java.util.*;
public class Main {
public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
}
} import java.util.*; util.* java public class Main {
public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
}
} Main public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
} main {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
} Scanner re=new Scanner(System.in); re new Scanner(System.in) int A1=re.nextInt(); A1 re.nextInt() re.nextInt re int B1=re.nextInt(); B1 re.nextInt() re.nextInt re System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1))) System.out.println System.out System System.out Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)) Math.max Math Math.max((A1+B1), (A1-B1)) Math.max Math (A1+B1) A1 B1 (A1-B1) A1 B1 (A1*B1) A1 B1 String[] args args public class Main {
public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
}
} public class Main {
public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
}
} Main
import java.util.*;
public class Main {
public static void main(String[] args) {
	Scanner re=new Scanner(System.in);
		int A1=re.nextInt();
		int B1=re.nextInt();
		System.out.println(Math.max(Math.max((A1+B1), (A1-B1)), (A1*B1)));
}
}