import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    }
} Main public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    } main {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.nextLine(); line scanner.nextLine() scanner.nextLine scanner String[] inputs = line.split(" "); inputs line.split(" ") line.split line " " int x = Integer.parseInt(inputs[0]); x Integer.parseInt(inputs[0]) Integer.parseInt Integer inputs[0] inputs 0 int y = Integer.parseInt(inputs[1]); y Integer.parseInt(inputs[1]) Integer.parseInt Integer inputs[1] inputs 1 int max = Integer.MIN_VALUE; max Integer.MIN_VALUE Integer Integer.MIN_VALUE if (x + y > max) {
            max = x + y;
        } x + y > max x + y x y max {
            max = x + y;
        } max = x + y max x + y x y if (x - y > max) {
            max = x - y;
        } x - y > max x - y x y max {
            max = x - y;
        } max = x - y max x - y x y if (x * y > max) {
            max = x * y;
        } x * y > max x * y x y max {
            max = x * y;
        } max = x * y max x * y x y 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 = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    }
} public class Main {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(System.in);
        
        String line = scanner.nextLine();
        String[] inputs = line.split(" ");
        
        int x = Integer.parseInt(inputs[0]);
        int y = Integer.parseInt(inputs[1]);
        
        int max = Integer.MIN_VALUE;
        
        if (x + y > max) {
            max = x + y;
        }
        if (x - y > max) {
            max = x - y;
        }
        
        if (x * y > max) {
            max = x * y;
        }
        
        System.out.println(max);
        
        
    }
}
