def max_product(nums: list[int]) -> int:
    # your move