from sys import stdin





def main():

    A, B = [int(x) for x in stdin.readline().rstrip().split()]

    print((max([A + B, A - B, A * B])))





if __name__ == '__main__':

    main()

from sys import stdin





def main():

    A, B = [int(x) for x in stdin.readline().rstrip().split()]

    print((max(A + B, A - B, A * B)))





if __name__ == '__main__':

    main()

from sys import stdin


def main():
    A, B = [int(x) for x in stdin.readline().rstrip().split()]
    print((max([A + B, A - B, A * B])))


if __name__ == "__main__":
    main()

from sys import stdin


def main():
    A, B = [int(x) for x in stdin.readline().rstrip().split()]
    print((max(A + B, A - B, A * B)))


if __name__ == "__main__":
    main()

-    print((max([A + B, A - B, A * B]))) +    print((max(A + B, A - B, A * B)))