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

public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	}	
} 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 sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	}	
} Main public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	} Scanner sc = new Scanner(System.in); sc 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[] ans = new int[3]; ans new int[3] 3 ans[0] = a + b ans[0] ans 0 a + b a b ans[1] = a - b ans[1] ans 1 a - b a b ans[2] = a * b ans[2] ans 2 a * b a b Arrays.sort(ans) Arrays.sort Arrays ans System.out.println(ans[2]) System.out.println System.out System System.out ans[2] ans 2 String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	}	
} public class Main {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	}	
} 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 sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int[] ans = new int[3];
		ans[0] = a + b;
		ans[1] = a - b;
		ans[2] = a * b;
		Arrays.sort(ans);
		System.out.println(ans[2]);
	}	
}