import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	}
} import java.util.Scanner; Scanner 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 c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	} 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 c1 = a + b; c1 a + b a b int c2 = a - b; c2 a - b a b int c3 = a * b; c3 a * b a b int c=Math.max(c1, c2); c Math.max(c1, c2) Math.max Math c1 c2 int d=Math.max(c, c3); d Math.max(c, c3) Math.max Math c c3 System.out.println(d) System.out.println System.out System System.out d sc.close() sc.close sc 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 c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();

		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;

		int c=Math.max(c1, c2);
		int d=Math.max(c, c3);
		
		System.out.println(d);
		sc.close();
	}
}