



"""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"""





import string
def      a__			(   lowerCAmelCase__   ):
      for key in range(len(string.ascii_uppercase   )   ):
            UpperCAmelCase_    				=							""
            for symbol in message:
                  if symbol in string.ascii_uppercase:
                        UpperCAmelCase_    				=							string.ascii_uppercase.find(lowerCAmelCase__   )
                        UpperCAmelCase_    				=							num - key
                        if num < 0:
                              UpperCAmelCase_    				=							num + len(string.ascii_uppercase   )
                        UpperCAmelCase_    				=							translated + string.ascii_uppercase[num]
                  else:
                        UpperCAmelCase_    				=							translated + symbol
            print(f"""Decryption using Key #{key}: {translated}"""   )
def      a__			(   ):
      UpperCAmelCase_    				=							input("Encrypted message: "   )
      UpperCAmelCase_    				=							message.upper()
      decrypt(lowerCAmelCase__   )


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()




