import java.util.Scanner;

public class Main {

	private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	}

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

	private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	}

	public static void main(String[] args) {
		new Main().solve();
	}
} Main private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	} solve {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int A = in.nextInt(); A in.nextInt() in.nextInt in int B = in.nextInt(); B in.nextInt() in.nextInt in System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		) System.out.println System.out System System.out Math.max(A+B, 
				Math.max(A-B, A*B)
			) Math.max Math A+B A B Math.max(A-B, A*B) Math.max Math A-B A B A*B A B public static void main(String[] args) {
		new Main().solve();
	} main {
		new Main().solve();
	} new Main().solve() new Main().solve new Main() String[] args args public class Main {

	private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	}

	public static void main(String[] args) {
		new Main().solve();
	}
} public class Main {

	private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	}

	public static void main(String[] args) {
		new Main().solve();
	}
} Main
import java.util.Scanner;

public class Main {

	private void solve() {
		Scanner in = new Scanner(System.in);
		int A = in.nextInt();
		int B = in.nextInt();
		
		System.out.println(
			Math.max(A+B, 
				Math.max(A-B, A*B)
			)
		);
	}

	public static void main(String[] args) {
		new Main().solve();
	}
}