




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

def  UpperCAmelCase_							(				__UpperCAmelCase						:     int							) ->			str:

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

      SCREAMING_SNAKE_CASE_     						=      precision
      SCREAMING_SNAKE_CASE_     						=      ceil(precision / 14							)
      SCREAMING_SNAKE_CASE_     						=      42_68_80 * Decimal(1_00_05							).sqrt()
      SCREAMING_SNAKE_CASE_     						=      1
      SCREAMING_SNAKE_CASE_     						=      13_59_14_09
      SCREAMING_SNAKE_CASE_     						=      Decimal(__UpperCAmelCase							)
      for k in range(1      ,      __UpperCAmelCase							):
            SCREAMING_SNAKE_CASE_     						=      factorial(6 * k							) // (factorial(3 * k							) * factorial(__UpperCAmelCase							) ** 3)
            linear_term += 5_45_14_01_34
            exponential_term *= -26_25_37_41_26_40_76_80_00
            partial_sum += Decimal(multinomial_term * linear_term							) / exponential_term
      return str(constant_term / partial_sum							)[:-1]


if __name__ == "__main__":
   lowerCamelCase__			:       int         =							50
   print(f'''The first {n} digits of pi is: {pi(n)}''')





import warnings

from ...utils import logging
from .image_processing_layoutlmva import LayoutLMvaImageProcessor


lowerCamelCase__			:       Dict         =							logging.get_logger(__name__)





class 	lowerCamelCase_							(				_SCREAMING_SNAKE_CASE ):


 '''simple docstring'''







 def __init__(							self  :		List[Any]    ,    *_lowerCAmelCase  :		List[str]    ,    **_lowerCAmelCase  :		Optional[int]						):
       warnings.warn(
           'The class LayoutLMv2FeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
           ' Please use LayoutLMv2ImageProcessor instead.'    ,    _lowerCAmelCase    ,    )
       super().__init__(*_lowerCAmelCase    ,    **_lowerCAmelCase						)