import java.util.*;
class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int x = A+B;
		int y = A-B;
		int z = A*B;
		if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		}
	}
} import java.util.*; util.* java class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int x = A+B;
		int y = A-B;
		int z = A*B;
		if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		}
	}
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int x = A+B;
		int y = A-B;
		int z = A*B;
		if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int x = A+B;
		int y = A-B;
		int z = A*B;
		if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		}
	} 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 x = A+B; x A+B A B int y = A-B; y A-B A B int z = A*B; z A*B A B if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		} x>=y && x>=z x>=y x y x>=z x z {
			System.out.println(x);
		} System.out.println(x) System.out.println System.out System System.out x if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		} y>=x && y>=z y>=x y x y>=z y z {
			System.out.println(y);
		} System.out.println(y) System.out.println System.out System System.out y {
			System.out.println(z);
		} System.out.println(z) System.out.println System.out System System.out z String[] args args
import java.util.*;
class Main {
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int x = A+B;
		int y = A-B;
		int z = A*B;
		if(x>=y && x>=z) {
			System.out.println(x);
		}else if(y>=x && y>=z) {
			System.out.println(y);
		}else {
			System.out.println(z);
		}
	}
}