import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
//		String s = sc.next();

		List<Integer> list = new ArrayList();

		list.add(A+B);
		list.add(A-B);
		list.add(A*B);

		Collections.sort(list);
		Collections.reverse(list);

		System.out.println(list.get(0));


	}

}
 import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
//		String s = sc.next();

		List<Integer> list = new ArrayList();

		list.add(A+B);
		list.add(A-B);
		list.add(A*B);

		Collections.sort(list);
		Collections.reverse(list);

		System.out.println(list.get(0));


	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
//		String s = sc.next();

		List<Integer> list = new ArrayList();

		list.add(A+B);
		list.add(A-B);
		list.add(A*B);

		Collections.sort(list);
		Collections.reverse(list);

		System.out.println(list.get(0));


	} main {

		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
//		String s = sc.next();

		List<Integer> list = new ArrayList();

		list.add(A+B);
		list.add(A-B);
		list.add(A*B);

		Collections.sort(list);
		Collections.reverse(list);

		System.out.println(list.get(0));


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList(); list new ArrayList() list.add(A+B) list.add list A+B A B list.add(A-B) list.add list A-B A B list.add(A*B) list.add list A*B A B Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 String[] args args
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
//		String s = sc.next();

		List<Integer> list = new ArrayList();

		list.add(A+B);
		list.add(A-B);
		list.add(A*B);

		Collections.sort(list);
		Collections.reverse(list);

		System.out.println(list.get(0));


	}

}

