import java.util.Scanner;

public class Main {
static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
}
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
}
} import java.util.Scanner; Scanner java.util public class Main {
static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
}
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
}
} Main static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
} max {
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
} int max=-10001; max -10001 10001 if(x>max)max=x; x>max x max max=x max x if(y>max)max=y; y>max y max max=y max y if(z>max)max=z; z>max z max max=z max z return max; max int x x int y y int z z public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
} main {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
} 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 System.out.println(max((a-b), (a+b), (a*b))) System.out.println System.out System System.out max((a-b), (a+b), (a*b)) max (a-b) a b (a+b) a b (a*b) a b sc.close() sc.close sc String[] args args public class Main {
static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
}
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
}
} public class Main {
static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
}
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
}
} Main
import java.util.Scanner;

public class Main {
static int max(int x,int y,int z){
	int max=-10001;
	if(x>max)max=x;
	if(y>max)max=y;
	if(z>max)max=z;
	return max;
}
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b =sc.nextInt();
	System.out.println(max((a-b), (a+b), (a*b)));
	sc.close();
}
}
