
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	} main {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	} Scanner jk = new Scanner(System.in); jk new Scanner(System.in) int a = jk.nextInt(); a jk.nextInt() jk.nextInt jk int b = jk.nextInt(); b jk.nextInt() jk.nextInt jk ArrayList<Integer> arr = new ArrayList<Integer>(); arr new ArrayList<Integer>() arr.add(a+b) arr.add arr a+b a b arr.add(a-b) arr.add arr a-b a b arr.add(a*b) arr.add arr a*b a b System.out.println(Collections.max(arr)) System.out.println System.out System System.out Collections.max(arr) Collections.max Collections arr String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	}

} Main

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner jk = new Scanner(System.in);
		int a = jk.nextInt();
		int b = jk.nextInt();
		ArrayList<Integer> arr = new ArrayList<Integer>();
		arr.add(a+b);
		arr.add(a-b);
		arr.add(a*b);
		System.out.println(Collections.max(arr));
	}

}
