import 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 plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        int plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        int plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    } main {
        Scanner sc = new Scanner(System.in);

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

        int plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    } 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 plus = a + b; plus a + b a b int minus = a - b; minus a - b a b int mult = a * b; mult a * b a b if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        } plus > minus plus minus {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            } plus > mult plus mult {
                System.out.println(plus);
            } System.out.println(plus) System.out.println System.out System System.out plus {
                System.out.println(mult);
            } System.out.println(mult) System.out.println System.out System System.out mult if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        } minus > plus minus plus {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            } minus > mult minus mult {
                System.out.println(minus);
            } System.out.println(minus) System.out.println System.out System System.out minus {
                System.out.println(mult);
            } System.out.println(mult) System.out.println System.out System System.out mult {
            System.out.println(plus);
        } System.out.println(plus) System.out.println System.out System System.out plus 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 plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

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

        int plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    }
} Main
import 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 plus = a + b;
        int minus = a - b;
        int mult = a * b;

        if (plus > minus) {
            if (plus > mult) {
                System.out.println(plus);
            } else {
                System.out.println(mult);
            }
        } else if (minus > plus) {
            if (minus > mult) {
                System.out.println(minus);
            } else {
                System.out.println(mult);
            }
        } else {
            System.out.println(plus);
        }
    }
}