import java.util.Arrays;
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 a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		sc.close();	
	}
} import java.util.Arrays; Arrays java.util 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 a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		sc.close();	
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		sc.close();	
	} main {
		Scanner sc = new Scanner(System.in);
		
		int A = sc.nextInt();
		int B = sc.nextInt();
		
		int a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		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 a = A+B; a A+B A B int b = A-B; b A-B A B int c = A*B; c A*B A B int[] i = new int[3]; i new int[3] 3 i[0] = a i[0] i 0 a i[1] = b i[1] i 1 b i[2] = c i[2] i 2 c Arrays.sort(i) Arrays.sort Arrays i System.out.println(i[2]) System.out.println System.out System System.out i[2] i 2 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 a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		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 a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		sc.close();	
	}
} Main
import java.util.Arrays;
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 a = A+B;
		int b = A-B;
		int c = A*B;
		
		int[] i = new int[3];
		i[0] = a;
		i[1] = b;
		i[2] = c;
		
		Arrays.sort(i);
		System.out.println(i[2]);
		
		sc.close();	
	}
}