

"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowerCAmelCase							:  Union[str, Any]            =						{
    """configuration_x_clip""": [
        """XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """XCLIPConfig""",
        """XCLIPTextConfig""",
        """XCLIPVisionConfig""",
    ],
    """processing_x_clip""": ["""XCLIPProcessor"""],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCAmelCase							:  List[str]            =						[
						    """XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
						    """XCLIPModel""",
						    """XCLIPPreTrainedModel""",
						    """XCLIPTextModel""",
						    """XCLIPVisionModel""",
						]

if TYPE_CHECKING:
						from .configuration_x_clip import (
						    XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    XCLIPConfig,
						    XCLIPTextConfig,
						    XCLIPVisionConfig,
						)
						from .processing_x_clip import XCLIPProcessor

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_x_clip import (
												    XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
												    XCLIPModel,
												    XCLIPPreTrainedModel,
												    XCLIPTextModel,
												    XCLIPVisionModel,
												)

else:
						import sys

						lowerCAmelCase							:  int            =						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)









def       A_				(   _UpperCAmelCase = 10**9   ):
						SCREAMING_SNAKE_CASE_:			List[str]  		=	1
						SCREAMING_SNAKE_CASE_:			Optional[int]  		=	2

						SCREAMING_SNAKE_CASE_:			int  		=	0
						SCREAMING_SNAKE_CASE_:			Dict  		=	0
						SCREAMING_SNAKE_CASE_:			List[str]  		=	0
						while perimeter <= max_perimeter:
												perimeters_sum += perimeter

												prev_value += 2 * value
												value += prev_value

												SCREAMING_SNAKE_CASE_:			Any  		=	2 * value + 2 if i % 2 == 0 else 2 * value - 2
												i += 1

						return perimeters_sum


if __name__ == "__main__":
						print(f'''{solution() = }''')






