import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    }

    private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    }

    private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] ab = br.readLine().split(" "); ab br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b = Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 System.out.println(problem137a(a, b)) System.out.println System.out System System.out problem137a(a, b) problem137a a b String[] args args private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    } problem137a {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    } return Math.max(Math.max((a + b), (a - b)), (a * b)); Math.max(Math.max((a + b), (a - b)), (a * b)) Math.max Math Math.max((a + b), (a - b)) Math.max Math (a + b) a b (a - b) a b (a * b) a b int a a int b b public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    }

    private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    }

    private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ab = br.readLine().split(" ");
        int a = Integer.parseInt(ab[0]);
        int b = Integer.parseInt(ab[1]);
        System.out.println(problem137a(a, b));
    }

    private static int problem137a(int a, int b) {
        return Math.max(Math.max((a + b), (a - b)), (a * b));
    }
}