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