
// 問題URL
//

import java.util.Scanner;
import java.util.Arrays;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.stream.*; stream.* java.util public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    }
} Main public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    } main {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer x = Integer.parseInt(scanner.next()); x Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer y = Integer.parseInt(scanner.next()); y Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Integer kakeru = x * y; kakeru x * y x y Integer tasu = x + y; tasu x + y x y Integer hiku = x - y; hiku x - y x y Integer kekka= Math.max(kakeru,tasu); kekka Math.max(kakeru,tasu) Math.max Math kakeru tasu System.out.println(Math.max(kekka, hiku)) System.out.println System.out System System.out Math.max(kekka, hiku) Math.max Math kekka hiku String[] args args public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    }
} public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    }
} Main

// 問題URL
//

import java.util.Scanner;
import java.util.Arrays;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer x = Integer.parseInt(scanner.next());
        Integer y = Integer.parseInt(scanner.next());

        Integer kakeru = x * y;
        Integer tasu = x + y;
        Integer hiku = x - y;
        Integer kekka= Math.max(kakeru,tasu);
        System.out.println(Math.max(kekka, hiku));

    }
}