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