import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	} 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 a = A+B; a A+B A B int b = A-B; b A-B A B int c = A*B; c A*B A B if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		} a>=b&&a>=c a>=b a b a>=c a c {
			System.out.println(a);
		} System.out.println(a) System.out.println System.out System System.out a if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		} b>=a&&b>=c b>=a b a b>=c b c {
			System.out.println(b);
		} System.out.println(b) System.out.println System.out System System.out b if (c>=b&&c>=a){
			System.out.println(c);
		} c>=b&&c>=a c>=b c b c>=a c a {
			System.out.println(c);
		} System.out.println(c) System.out.println System.out System System.out c String args[] args public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	}
} public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	}
} Main
import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
	    int a = A+B;
		int b = A-B;
		int c = A*B;
		if (a>=b&&a>=c){
			System.out.println(a);
		}
		else if (b>=a&&b>=c){
			System.out.println(b);
		}
		else if (c>=b&&c>=a){
			System.out.println(c);
		}
	}
}
