import java.util.Scanner;

public 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	}
} 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	} 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 sc.close() sc.close sc int sum = A + B; sum A + B A B int diff = A - B; diff A - B A B int prod = A * B; prod A * B A B int max = sum; max sum if(max < diff) {
			max = diff;
		} max < diff max diff {
			max = diff;
		} max = diff max diff if(max < prod) {
			max = prod;
		} max < prod max prod {
			max = prod;
		} max = prod max prod System.out.println(max) System.out.println System.out System System.out max String[] args args public 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	}
} public 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	}
} Main
import java.util.Scanner;

public 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());
		sc.close();

		int sum = A + B;
		int diff = A - B;
		int prod = A * B;
		int max = sum;

		//和と差の比較
		if(max < diff) {
			max = diff;
		}

		//和と差のうち大きい数と積の比較
		if(max < prod) {
			max = prod;
		}

		System.out.println(max);
	}
}