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

public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    }
} Main public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    } main {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strArray[] = br.readLine().split(" "); strArray br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int A = Integer.parseInt(strArray[0]); A Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 int B = Integer.parseInt(strArray[1]); B Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 System.out.println(Math.max(Math.max(A + B, A - B), A * B)) System.out.println System.out System System.out Math.max(Math.max(A + B, A - B), A * B) Math.max Math Math.max(A + B, A - B) Math.max Math A + B A B A - B A B A * B A B String args[] args public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    }
} public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws Exception {
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	String strArray[] = br.readLine().split(" ");
	int A = Integer.parseInt(strArray[0]);
	int B = Integer.parseInt(strArray[1]);

	System.out.println(Math.max(Math.max(A + B, A - B), A * B));

    }
}