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

public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		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) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		System.out.println(max);
	}

} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		System.out.println(max);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		System.out.println(max);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line; line String in[] = new String[2]; in new String[2] 2 int a = 0 a 0 b = 0; b 0 try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		} catch (IOException e) {
			e.getStackTrace();
		} IOException e {
			e.getStackTrace();
		} e.getStackTrace() e.getStackTrace e {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} line = br.readLine() line br.readLine() br.readLine br in = line.split(" ") in line.split(" ") line.split line " " a = Integer.parseInt(in[0]) a Integer.parseInt(in[0]) Integer.parseInt Integer in[0] in 0 b = Integer.parseInt(in[1]) b Integer.parseInt(in[1]) Integer.parseInt Integer in[1] in 1 int max = a + b; max a + b a b int tmp; tmp if (max < (tmp = a - b)) {
			max = tmp;
		} max < (tmp = a - b) max (tmp = a - b) tmp a - b a b {
			max = tmp;
		} max = tmp max tmp if (max < (tmp = a * b)) {
			max = tmp;
		} max < (tmp = a * b) max (tmp = a * b) tmp a * b a b {
			max = tmp;
		} max = tmp max tmp 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) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		System.out.println(max);
	}

} public class Main {

	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		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) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		String in[] = new String[2];
		int a = 0, b = 0;
		try {
			line = br.readLine();
			in = line.split(" ");
			a = Integer.parseInt(in[0]);
			b = Integer.parseInt(in[1]);
		} catch (IOException e) {
			e.getStackTrace();
		}
		
		int max = a + b;
		int tmp;
		if (max < (tmp = a - b)) {
			max = tmp;
		}
		
		if (max < (tmp = a * b)) {
			max = tmp;
		}
		
		System.out.println(max);
	}

}