

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    }
} Main public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    } main {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    } Scanner sn = new Scanner(System.in); sn new Scanner(System.in) int a = sn.nextInt(); a sn.nextInt() sn.nextInt sn int b = sn.nextInt(); b sn.nextInt() sn.nextInt sn int sum = a + b; sum a + b a b int sub = a -b; sub a -b a b int malti = a * b; malti a * b a b int max = sum; max sum if (max < sub) {
            max = sub;
        } max < sub max sub {
            max = sub;
        } max = sub max sub if (max < malti) {
            max = malti;
        } max < malti max malti {
            max = malti;
        } max = malti max malti 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 sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    }
} public class Main {

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    }
} Main


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);

        int a = sn.nextInt();
        int b = sn.nextInt();

        int sum = a + b;
        int sub = a -b;
        int malti = a * b;

        int max = sum;
        if (max < sub) {
            max = sub;
        }
        if (max < malti) {
            max = malti;
        }

        System.out.println(max);

    }
}