import java.util.Scanner;
import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt(); int b=sc.nextInt();int[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    };
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays 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[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    };
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt(); int b=sc.nextInt();int[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    } main {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt(); int b=sc.nextInt();int[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    } 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[] array = new int[3]; array new int[3] 3 array[0]=a+b array[0] array 0 a+b a b array[1]=a-b array[1] array 1 a-b a b array[2]=a*b array[2] array 2 a*b a b Arrays.sort(array) Arrays.sort Arrays array System.out.println(array[2]) System.out.println System.out System System.out array[2] array 2 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[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    };
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt(); int b=sc.nextInt();int[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    };
} Main
import java.util.Scanner;
import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a=sc.nextInt(); int b=sc.nextInt();int[] array = new int[3];
        array[0]=a+b;array[1]=a-b;array[2]=a*b;
        Arrays.sort(array);
        System.out.println(array[2]);
    };
}