#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1137
Task: 1

Write a Python function that calculates the number of days between two given dates, considering leap years and varying month lengths, and returns the result as an integer. The function should be te
Generated: 2026-02-12T21:36:32.209458
"""

def max_product_of_three(nums):
    nums.sort()
    # Possible products:
    # 1. product of the three largest positive numbers
    # 2. product of the two smallest (possibly negative) and the largest positive number
    return max(nums[-1] * nums[-2] * nums[-3], nums[0] * nums[1] * nums[-1])

if __name__ == '__main__':
    test_cases = [
        [1, 2, 3, 4, 5],         # Expected: 60 (3 * 4 * 5)
        [-10, -3, 5, 2, 4],      # Expected: 150 (-10 * -3 * 5)
        [-5, -4, -3, -2, -1],    # Expected: -6 (-5 * -4 * -3)
        [0, 0, 0, 0],            # Expected: 0
        [10, 2, 3, 4, 5],        # Expected: 60 (3 * 4 * 5)
        [-1, -2, 1, 2, 3],       # Expected: 6 (1 * 2 * 3)
    ]
    
    for i, case in enumerate(test_cases):
        result = max_product_of_three(case)
        print(f"Test case {i+1}: {case} => Product: {result}")