ints = sorted(list(map(int, input().split()))) print(ints[0] * ints[2])