import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int plus = a + b; plus a + b a b int minus = a - b; minus a - b a b int kakeru = a * b; kakeru a * b a b System.out.println(Math.max(Math.max(plus, minus), kakeru)) System.out.println System.out System System.out Math.max(Math.max(plus, minus), kakeru) Math.max Math Math.max(plus, minus) Math.max Math plus minus kakeru String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int plus = a + b;
		int minus = a - b;
		int kakeru = a * b;
		System.out.println(Math.max(Math.max(plus, minus), kakeru));
	}
}
