import java.io.PrintWriter;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	}

	
} import java.io.PrintWriter; PrintWriter java.io import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	}

	
} Main public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	} main {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int A = Integer.parseInt(stdin.next()); A Integer.parseInt(stdin.next()) Integer.parseInt Integer stdin.next() stdin.next stdin int B = Integer.parseInt(stdin.next()); B Integer.parseInt(stdin.next()) Integer.parseInt Integer stdin.next() stdin.next stdin int seki = A*B; seki A*B A B int tasu = A+B; tasu A+B A B int hiku = A-B; hiku A-B A B out.println(Math.max(seki,Math.max(tasu,hiku))) out.println out Math.max(seki,Math.max(tasu,hiku)) Math.max Math seki Math.max(tasu,hiku) Math.max Math tasu hiku out.flush() out.flush out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	}

	
} public class Main {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	}

	
} Main
import java.io.PrintWriter;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner stdin = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		
		int A = Integer.parseInt(stdin.next());
		int B = Integer.parseInt(stdin.next());
		
		int seki = A*B;
		int tasu = A+B;
		int hiku = A-B;

		out.println(Math.max(seki,Math.max(tasu,hiku)));
		out.flush();
	}

	
}