import java.util.Comparator;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	}

} import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util import java.util.stream.Stream; Stream java.util.stream public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	} main {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans1 = a + b; ans1 a + b a b int ans2 = a - b; ans2 a - b a b int ans3 = a * b; ans3 a * b a b System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get()) System.out.println System.out System System.out Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get() Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()) Stream.of(ans1, ans2, ans3).max Stream.of(ans1, ans2, ans3) Stream.of Stream ans1 ans2 ans3 Comparator.naturalOrder() Comparator.naturalOrder Comparator String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	}

} Main
import java.util.Comparator;
import java.util.Scanner;
import java.util.stream.Stream;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int ans1 = a + b;
		int ans2 = a - b;
		int ans3 = a * b;
		System.out.println(Stream.of(ans1, ans2, ans3).max(Comparator.naturalOrder()).get());

	}

}
