import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] nums = br.readLine().split(" "); nums br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] numsInt = new int[2]; numsInt new int[2] 2 numsInt[0] = Integer.parseInt(nums[0]) numsInt[0] numsInt 0 Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 numsInt[1] = Integer.parseInt(nums[1]) numsInt[1] numsInt 1 Integer.parseInt(nums[1]) Integer.parseInt Integer nums[1] nums 1 int max = numsInt[0] + numsInt[1]; max numsInt[0] + numsInt[1] numsInt[0] numsInt 0 numsInt[1] numsInt 1 if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		} max < numsInt[0] - numsInt[1] max numsInt[0] - numsInt[1] numsInt[0] numsInt 0 numsInt[1] numsInt 1 {
			max = numsInt[0] - numsInt[1];
		} max = numsInt[0] - numsInt[1] max numsInt[0] - numsInt[1] numsInt[0] numsInt 0 numsInt[1] numsInt 1 if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		} max < numsInt[0] * numsInt[1] max numsInt[0] * numsInt[1] numsInt[0] numsInt 0 numsInt[1] numsInt 1 {
			max = numsInt[0] * numsInt[1];
		} max = numsInt[0] * numsInt[1] max numsInt[0] * numsInt[1] numsInt[0] numsInt 0 numsInt[1] numsInt 1 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) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] nums = br.readLine().split(" ");
		int[] numsInt = new int[2];
		numsInt[0] = Integer.parseInt(nums[0]);
		numsInt[1] = Integer.parseInt(nums[1]);
		int max = numsInt[0] + numsInt[1];
		if(max < numsInt[0] - numsInt[1]){
			max = numsInt[0] - numsInt[1];
		}
		if(max < numsInt[0] * numsInt[1]){
			max = numsInt[0] * numsInt[1];
		}
		System.out.println(max);
	}
}
