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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			System.out.println(c);
		} b > c b c {
			System.out.println(b);
		} System.out.println(b) System.out.println System.out System System.out b {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			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 > c){
			System.out.println(b);
		}
		else {
			System.out.println(c);
		}
	}
}