import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	}
	
} import java.io.IOException; IOException java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	}
	
} Main public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	} main {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	} Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int a = sn.nextInt(); a sn.nextInt() sn.nextInt sn int b = sn.nextInt(); b sn.nextInt() sn.nextInt sn int sum = a + b; sum a + b a b int minus = a - b; minus a - b a b int kakeru = a * b; kakeru a * b a b if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		} sum >= minus && sum >= kakeru sum >= minus sum minus sum >= kakeru sum kakeru {
			System.out.println(sum);
		} System.out.println(sum) System.out.println System.out System System.out sum if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		} minus >= sum && minus >= kakeru minus >= sum minus sum minus >= kakeru minus kakeru {
			System.out.println(minus);
		} System.out.println(minus) System.out.println System.out System System.out minus if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		} kakeru >= sum && kakeru >= minus kakeru >= sum kakeru sum kakeru >= minus kakeru minus {
			System.out.println(kakeru);
		} System.out.println(kakeru) System.out.println System.out System System.out kakeru String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	}
	
} public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	}
	
} Main
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sn = new Scanner(System.in);
		
		int a = sn.nextInt();
		int b = sn.nextInt();
		
		int sum = a + b;
		int minus = a - b;
		int kakeru = a * b;
		
		if (sum >= minus && sum >= kakeru) {
			System.out.println(sum);
		} else if (minus >= sum && minus >= kakeru) {
			System.out.println(minus);
		} else if (kakeru >= sum && kakeru >= minus) {
			System.out.println(kakeru);
		}
	}
	
}
