import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    }
}
 import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    } main {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	} {
    		sc.close();
    	} sc.close() sc.close sc {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int plus = a + b; plus a + b a b int minus = a - b; minus a - b a b int multi = a * b; multi a * b a b if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		} plus > minus plus minus {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			} multi > plus multi plus {
    				System.out.println(multi);
    			} System.out.println(multi) System.out.println System.out System System.out multi {
    				System.out.println(plus);
    			} System.out.println(plus) System.out.println System.out System System.out plus {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		} if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			} multi > minus multi minus {
    				System.out.println(multi);
    			} System.out.println(multi) System.out.println System.out System System.out multi {
    				System.out.println(minus);
    			} System.out.println(minus) System.out.println System.out System System.out minus String[] args args public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    }
} public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	try {
    		int a = sc.nextInt();
    		int b = sc.nextInt();

    		int plus = a + b;
    		int minus = a - b;
    		int multi = a * b;

    		if (plus > minus) {
    			if (multi > plus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(plus);
    			}
    		} else {
    			if (multi > minus) {
    				System.out.println(multi);
    			} else {
    				System.out.println(minus);
    			}
    		}
    	} finally {
    		sc.close();
    	}
    }
}

