import java.util.*;
public class Main{
	public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	}
	public static int max(int a,int b){
		return (a>b)?a:b;
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	}
	public static int max(int a,int b){
		return (a>b)?a:b;
	}
} Main public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	} main {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	} int a a b; b Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a= sc.nextInt() a sc.nextInt() sc.nextInt sc b= sc.nextInt() b sc.nextInt() sc.nextInt sc System.out.println(max(a+b,max(a*b,a-b))) System.out.println System.out System System.out max(a+b,max(a*b,a-b)) max a+b a b max(a*b,a-b) max a*b a b a-b a b String[] args args public static int max(int a,int b){
		return (a>b)?a:b;
	} max {
		return (a>b)?a:b;
	} return (a>b)?a:b; (a>b)?a:b (a>b) a b a b int a a int b b public class Main{
	public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	}
	public static int max(int a,int b){
		return (a>b)?a:b;
	}
} public class Main{
	public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	}
	public static int max(int a,int b){
		return (a>b)?a:b;
	}
} Main
import java.util.*;
public class Main{
	public static void main(String[] args) {
		int a,b;
		Scanner sc = new Scanner(System.in);
		a= sc.nextInt();
		b= sc.nextInt();
		System.out.println(max(a+b,max(a*b,a-b)));
	}
	public static int max(int a,int b){
		return (a>b)?a:b;
	}
}