import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc int a = A + B a A + B A B b = A - B b A - B A B c = A * B; c A * B A B if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        } a < b a b {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            } b < c b c {
                System.out.println(c);
            } System.out.println(c) System.out.println System.out System System.out c {
                System.out.println(b);
            } System.out.println(b) System.out.println System.out System System.out b {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        } if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            } a < c a c {
                System.out.println(c);
            } System.out.println(c) System.out.println System.out System System.out c {
                System.out.println(a);
            } System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int a = A + B,
            b = A - B,
            c = A * B;

        if (a < b) {
            if (b < c) {
                System.out.println(c);
            } else {
                System.out.println(b);
            }
        } else {
            if (a < c) {
                System.out.println(c);
            } else {
                System.out.println(a);
            }
        }
    }
}