import java.util.Scanner;
public class Main {
	public static void main(String[] args) {


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

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


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

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


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

	} main {


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

	} 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 p = a + b; p a + b a b int m = a - b; m a - b a b int t = a * b; t a * b a b int values[] = {p, m, t}; values {p, m, t} p m t int max      = values[0]; max values[0] values 0 for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        } int index = 1; int index = 1; index 1 index < values.length index values.length values values.length index ++ index ++ index {//[3]
            max = Math.max(max, values[index]);//[4]
        } {//[3]
            max = Math.max(max, values[index]);//[4]
        } max = Math.max(max, values[index]) max Math.max(max, values[index]) Math.max Math max values[index] values index 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) {


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

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


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

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


        // Scannerクラスのインスタンスの生成
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();

        int p = a + b;
        int m = a - b;
        int t = a * b;
        int values[] = {p, m, t};//[1]
        int max      = values[0];//[2]

        for (int index = 1; index < values.length; index ++) {//[3]
            max = Math.max(max, values[index]);//[4]
        }
        System.out.println(max);

	}
}