



"""simple docstring"""





from decimal import Decimal, getcontext
from math import ceil, factorial
def        a__     (				lowerCAmelCase__				):

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

      UpperCAmelCase_      			=							precision
      UpperCAmelCase_      			=							ceil(precision / 14				)
      UpperCAmelCase_      			=							426880 * Decimal(10005				).sqrt()
      UpperCAmelCase_      			=							1
      UpperCAmelCase_      			=							13591409
      UpperCAmelCase_      			=							Decimal(lowerCAmelCase__				)
      for k in range(1     ,      lowerCAmelCase__				):
            UpperCAmelCase_      			=							factorial(6 * k				) // (factorial(3 * k				) * factorial(lowerCAmelCase__				) ** 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__":
  lowerCamelCase       	=						50
  print(F"The first {n} digits of pi is: {pi(n)}")









"""simple docstring"""





from .configuration_bert_masked import MaskedBertConfig
from .modeling_bert_masked import (
    MaskedBertForMultipleChoice,
    MaskedBertForQuestionAnswering,
    MaskedBertForSequenceClassification,
    MaskedBertForTokenClassification,
    MaskedBertModel,
)
from .modules import *




