






from decimal import Decimal, getcontext
from math import ceil, factorial

def    UpperCamelCase						(	_A			):






						"""simple docstring"""







						if not isinstance(_A,   _A			):
												raise TypeError("""Undefined for non-integers"""			)
						elif precision < 1:
												raise ValueError("""Undefined for non-natural numbers"""			)

						__magic_name__      :       Dict       						= precision
						__magic_name__      :       str       						= ceil(precision / 14			)
						__magic_name__      :       List[str]       						= 426880 * Decimal(10005			).sqrt()
						__magic_name__      :       List[Any]       						= 1
						__magic_name__      :       Dict       						= 13591409
						__magic_name__      :       Tuple       						= Decimal(_A			)
						for k in range(1,   _A			):
												__magic_name__      :       List[Any]       						= factorial(6 * k			) // (factorial(3 * k			) * factorial(_A			) ** 3)
												linear_term += 545140134
												exponential_term *= -262537412640768000
												partial_sum += Decimal(multinomial_term * linear_term			) / exponential_term
						return str(constant_term / partial_sum			)[:-1]


if __name__ == "__main__":
		__magic_name__:					Tuple							=     50
		print(F"""The first {n} digits of pi is: {pi(n)}""")








from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


__magic_name__:					List[Any]							=     {
    "configuration_conditional_detr": [
        "CONDITIONAL_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "ConditionalDetrConfig",
        "ConditionalDetrOnnxConfig",
    ]
}

try:
		if not is_vision_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__magic_name__:					List[str]							=     ["ConditionalDetrFeatureExtractor"]
		__magic_name__:					int							=     ["ConditionalDetrImageProcessor"]

try:
		if not is_torch_available():
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		pass
else:
		__magic_name__:					List[Any]							=     [
		    "CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST",
		    "ConditionalDetrForObjectDetection",
		    "ConditionalDetrForSegmentation",
		    "ConditionalDetrModel",
		    "ConditionalDetrPreTrainedModel",
		]


if TYPE_CHECKING:
		from .configuration_conditional_detr import (
		    CONDITIONAL_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP,
		    ConditionalDetrConfig,
		    ConditionalDetrOnnxConfig,
		)

		try:
				if not is_vision_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .feature_extraction_conditional_detr import ConditionalDetrFeatureExtractor
				from .image_processing_conditional_detr import ConditionalDetrImageProcessor

		try:
				if not is_torch_available():
						raise OptionalDependencyNotAvailable()
		except OptionalDependencyNotAvailable:
				pass
		else:
				from .modeling_conditional_detr import (
				    CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST,
				    ConditionalDetrForObjectDetection,
				    ConditionalDetrForSegmentation,
				    ConditionalDetrModel,
				    ConditionalDetrPreTrainedModel,
				)

else:
		import sys

		__magic_name__:					List[str]							=     _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
