import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	}

} 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();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	} 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 p =a+b; p a+b a b int m =a-b; m a-b a b int k = a*b; k a*b a b if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		} (p>=m)&&(p>=k) (p>=m) p m (p>=k) p k {
			System.out.println(p);
		} System.out.println(p) System.out.println System.out System System.out p if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		} (m>=p)&&(m>=k) (m>=p) m p (m>=k) m k {
			System.out.println(m);
		} System.out.println(m) System.out.println System.out System System.out m if((k>=m)&&(k>=m)) {
			System.out.println(k);
		} (k>=m)&&(k>=m) (k>=m) k m (k>=m) k m {
			System.out.println(k);
		} System.out.println(k) System.out.println System.out System System.out k 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 p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		int p =a+b;
		int m =a-b;
		int k = a*b;

		if((p>=m)&&(p>=k)) {
			System.out.println(p);
		}else if((m>=p)&&(m>=k)) {
			System.out.println(m);
		}else if((k>=m)&&(k>=m)) {
			System.out.println(k);
		}

	}

}