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 puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} 
} 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 puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} 
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} main {
		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(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 puls = a + b; puls a + b a b int minus = a - b; minus a - b a b int times = a * b; times a * b a b int max = 0; max 0 max = Math.max(puls, minus) max Math.max(puls, minus) Math.max Math puls minus max = Math.max(max, times) max Math.max(max, times) Math.max Math max times System.out.print(max) System.out.print 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 puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(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 puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} 
} 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 puls = a + b;
		int minus = a - b;
		int times = a * b;
		
		int max = 0;
		
		max = Math.max(puls, minus);
		max = Math.max(max, times);

		System.out.print(max);
		
	} 
}