import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		int ans = Math.max(ans1, Math.max(ans2,ans3));
		System.out.println(ans);
	}
	
	
	} import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		int ans = Math.max(ans1, Math.max(ans2,ans3));
		System.out.println(ans);
	}
	
	
	} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		int ans = Math.max(ans1, Math.max(ans2,ans3));
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		int ans = Math.max(ans1, Math.max(ans2,ans3));
		System.out.println(ans);
	} 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 ans1 = a + b; ans1 a + b a b int ans2 = a - b; ans2 a - b a b int ans3 = a * b; ans3 a * b a b int ans = Math.max(ans1, Math.max(ans2,ans3)); ans Math.max(ans1, Math.max(ans2,ans3)) Math.max Math ans1 Math.max(ans2,ans3) Math.max Math ans2 ans3 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		int ans = Math.max(ans1, Math.max(ans2,ans3));
		System.out.println(ans);
	}
	
	
	}