import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		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) {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	}

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

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	} main {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	} int a; a int 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 wa = a + b; wa a + b a b int sa = a - b; sa a - b a b int seki = a * b; seki a * b a b int[] ar = new int[3]; ar new int[3] 3 ar[0] = wa ar[0] ar 0 wa ar[1] = sa ar[1] ar 1 sa ar[2] = seki ar[2] ar 2 seki System.out.println(Arrays.stream(ar).max().getAsInt()) System.out.println System.out System System.out Arrays.stream(ar).max().getAsInt() Arrays.stream(ar).max().getAsInt Arrays.stream(ar).max() Arrays.stream(ar).max Arrays.stream(ar) Arrays.stream Arrays ar sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		int a;
		int b;
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		int wa = a + b;
		int sa = a - b;
		int seki = a * b;
		int[] ar = new int[3];
		ar[0] = wa;
		ar[1] = sa;
		ar[2] = seki;

		System.out.println(Arrays.stream(ar).max().getAsInt());

		sc.close();

	}

}
