import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int c = a + b;
		int d = a - b;
		int e = a * b;

		int max1 = Math.max(c, d);
		int max2 = Math.max(max1, e);

		System.out.println(max2);

	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int c = a + b;
		int d = a - b;
		int e = a * b;

		int max1 = Math.max(c, d);
		int max2 = Math.max(max1, e);

		System.out.println(max2);

	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int c = a + b;
		int d = a - b;
		int e = a * b;

		int max1 = Math.max(c, d);
		int max2 = Math.max(max1, e);

		System.out.println(max2);

	} main {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int c = a + b;
		int d = a - b;
		int e = a * b;

		int max1 = Math.max(c, d);
		int max2 = Math.max(max1, e);

		System.out.println(max2);

	} 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 sc.close() sc.close sc int c = a + b; c a + b a b int d = a - b; d a - b a b int e = a * b; e a * b a b int max1 = Math.max(c, d); max1 Math.max(c, d) Math.max Math c d int max2 = Math.max(max1, e); max2 Math.max(max1, e) Math.max Math max1 e System.out.println(max2) System.out.println System.out System System.out max2 String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		sc.close();
		int c = a + b;
		int d = a - b;
		int e = a * b;

		int max1 = Math.max(c, d);
		int max2 = Math.max(max1, e);

		System.out.println(max2);

	}
}