import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

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

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int add = A + B;
		int sub = A - B;
		int multi = A * B;

		int max = add;
		if (max < sub)
			max = sub;
		if (max < multi)
			max = multi;
		System.out.println(max);
		sc.close();
	}
}