# A - +-x

def main():

    a, b = list(map(int, input().split()))

    print((max([a+b, a-b, a*b])))



if __name__ == '__main__':

    main()
# A - +-x

def main():

    a, b = list(map(int, input().split()))

    print((max(a+b, a-b, a*b)))



if __name__ == '__main__':

    main()
# A - +-x
def main():
    a, b = list(map(int, input().split()))
    print((max([a + b, a - b, a * b])))


if __name__ == "__main__":
    main()

# A - +-x
def main():
    a, b = list(map(int, input().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)))