import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	}

}
 import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	} 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 max = 0; max 0 int pmu[] = {a + b, a - b, a * b}; pmu {a + b, a - b, a * b} a + b a b a - b a b a * b a b for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		} int i = 1; int i = 1; i 1 i < pmu.length i pmu.length pmu pmu.length i++ i++ i {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		} {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		} if (pmu[i] > pmu[max]) {
		        max = i;
		    } pmu[i] > pmu[max] pmu[i] pmu i pmu[max] pmu max {
		        max = i;
		    } max = i max i System.out.println(pmu[max]) System.out.println System.out System System.out pmu[max] pmu max String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int max = 0;
		int pmu[] = {a + b, a - b, a * b};
		for(int i = 1; i < pmu.length;i++) {
		    if (pmu[i] > pmu[max]) {
		        max = i;
		    }
		}
		System.out.println(pmu[max]);
		

	}

}

