

import java.util.Scanner;

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

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    }
} Main public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    } main {

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int aNum = sc.nextInt(); aNum sc.nextInt() sc.nextInt sc int bNum = sc.nextInt(); bNum sc.nextInt() sc.nextInt sc sc.close() sc.close sc int tasizan = aNum + bNum; tasizan aNum + bNum aNum bNum int hikizan = aNum - bNum; hikizan aNum - bNum aNum bNum int kakezan = aNum * bNum; kakezan aNum * bNum aNum bNum int max = tasizan; max tasizan if (max <= hikizan) {
            max = hikizan;
        } max <= hikizan max hikizan {
            max = hikizan;
        } max = hikizan max hikizan if (max <= kakezan) {
            max = kakezan;
        } max <= kakezan max kakezan {
            max = kakezan;
        } max = kakezan max kakezan 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) throws Exception {

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    }
} Main


import java.util.Scanner;

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

        Scanner sc = new Scanner(System.in);

        int aNum = sc.nextInt();
        int bNum = sc.nextInt();

        sc.close();

        int tasizan = aNum + bNum;
        int hikizan = aNum - bNum;
        int kakezan = aNum * bNum;

        int max = tasizan;
        if (max <= hikizan) {
            max = hikizan;
        }
        if (max <= kakezan) {
            max = kakezan;
        }

        System.out.println(max);
    }
}