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 max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	}
} 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 max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	} main {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(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 = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE int sum = A+B; sum A+B A B if(sum>max) max = sum; sum>max sum max max = sum max sum int red = A-B; red A-B A B if(red > max) max = red; red > max red max max = red max red int d = A*B; d A*B A B if(d > max) max = d; d > max d max max = d max d System.out.println(max) System.out.println System.out System System.out max 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 max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	}
} public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();
		int max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	}
} 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 max = Integer.MIN_VALUE;
		int sum = A+B;
		if(sum>max) max = sum;
		int red = A-B;
		if(red > max) max = red;
		int d = A*B;
		if(d > max) max = d;
		System.out.println(max);
	}
}
