import java.util.Scanner;

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

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	}
} Main public static void main(String[] args) {

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	} main {

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	} int a a b; b Scanner sc =  new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc int ab1 ab1 ab2 ab2 ab3; ab3 ab1 = a + b ab1 a + b a b ab2 = a - b ab2 a - b a b ab3 = a*b ab3 a*b a b int max = ab1; max ab1 if (ab2 > max) max = ab2; ab2 > max ab2 max max = ab2 max ab2 if (ab3 > max) max = ab3; ab3 > max ab3 max max = ab3 max ab3 System.out.println(max) System.out.println System.out System System.out max String[] args args public class Main {
	public static void main(String[] args) {

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	}
} public class Main {
	public static void main(String[] args) {

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	}
} Main
import java.util.Scanner;

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

		int a,b;

		Scanner sc =  new Scanner(System.in);

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

		int ab1,ab2,ab3;

		ab1 = a + b;
		ab2 = a - b;
		ab3 = a*b;

		int max = ab1;

		if (ab2 > max) max = ab2;
		if (ab3 > max) max = ab3;

		System.out.println(max);
	}
}
