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 plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		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 plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		sc.close();
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

		int plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();
		int B = sc.nextInt();

		int plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		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 plus = A + B; plus A + B A B int minus = A - B; minus A - B A B int times = A * B; times A * B A B int culc = Math.max(plus, minus); culc Math.max(plus, minus) Math.max Math plus minus int result = Math.max(culc, times); result Math.max(culc, times) Math.max Math culc times System.out.print(result) System.out.print System.out System System.out result 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 plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		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 plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		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 plus = A + B;
		int minus = A - B;
		int times = A * B;
		
		int culc = Math.max(plus, minus);
		int result = Math.max(culc, times);
		System.out.print(result);

		sc.close();
	}
}
