import java.util.Scanner;

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

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	}
} Main public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	} main {
		try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	} try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		} {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) 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 diff = a - b; diff a - b a b int mult = a * b; mult a * b a b int max = add; max add if ( max < diff) {
				max = diff;
			} max < diff max diff {
				max = diff;
			} max = diff max diff if ( max < mult ) {
				max = mult;
			} max < mult max mult {
				max = mult;
			} max = mult max mult System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	}
} public class Main {
	public static void main(String[] args){
		try(Scanner sc = new Scanner(System.in)) {

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	}
} Main
import java.util.Scanner;

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

			int a = sc.nextInt();
			int b = sc.nextInt();
			
			int add = a + b;
			int diff = a - b;
			int mult = a * b;
			
			int max = add;
			
			if ( max < diff) {
				max = diff;
			}
			
			if ( max < mult ) {
				max = mult;
			}
			
			System.out.println(max);
			
		}
	}
}
