python3
```\nimport math\nclass Solution:\n    def maximumProduct(self, nums: List[int]) -> int:\n        if len(nums)==3:return math.prod(nums)\n        nums.sort(reve
```\nimport math\nclass Solution:\n    def maximumProduct(self, nums: List[int]) -> int:\n        if len(nums)==3:return math.prod(nums)\n        nums.sort(reverse=True)\n        print(nums)\n        return max(math.prod(nums[:3]),math.prod([nums[-1],nums[-2],nums[0]]))
[]