import java.util.*;

class Main {
	public static void main(String args[]) {
		
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		
		int x = A + B;
		int y = A - B;
		int z = A * B;
		
		int max = Math.max(x, y);
		max = Math.max(max,z);
		
		System.out.println(max);
	}
} import java.util.*; util.* java class Main {
	public static void main(String args[]) {
		
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		
		int x = A + B;
		int y = A - B;
		int z = A * B;
		
		int max = Math.max(x, y);
		max = Math.max(max,z);
		
		System.out.println(max);
	}
} Main public static void main(String args[]) {
		
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		
		int x = A + B;
		int y = A - B;
		int z = A * B;
		
		int max = Math.max(x, y);
		max = Math.max(max,z);
		
		System.out.println(max);
	} main {
		
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		
		int x = A + B;
		int y = A - B;
		int z = A * B;
		
		int max = Math.max(x, y);
		max = Math.max(max,z);
		
		System.out.println(max);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int x = A + B; x A + B A B int y = A - B; y A - B A B int z = A * B; z A * B A B int max = Math.max(x, y); max Math.max(x, y) Math.max Math x y max = Math.max(max,z) max Math.max(max,z) Math.max Math max z System.out.println(max) System.out.println System.out System System.out max String args[] args
import java.util.*;

class Main {
	public static void main(String args[]) {
		
		Scanner sc = new Scanner(System.in);
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		
		int x = A + B;
		int y = A - B;
		int z = A * B;
		
		int max = Math.max(x, y);
		max = Math.max(max,z);
		
		System.out.println(max);
	}
}