import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    }

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

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    }

} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

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

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = Integer.parseInt(sc.next()); B Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int p = A + B; p A + B A B int m = A - B; m A - B A B int k = A * B; k A * B A B int tmp = Math.max(p, m); tmp Math.max(p, m) Math.max Math p m int ans = Math.max(tmp, k); ans Math.max(tmp, k) Math.max Math tmp k System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    }

} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int A = Integer.parseInt(sc.next());
        int B = Integer.parseInt(sc.next());

        int p = A + B;
        int m = A - B;
        int k = A * B;
        int tmp = Math.max(p, m);
        int ans = Math.max(tmp, k);

        System.out.println(ans);
    }

}
