
import os

try:
					from .build_directory_md import good_file_paths
except ImportError:
					from build_directory_md import good_file_paths  # type: ignore

_UpperCAmelCase					: Tuple      =       list(good_file_paths())
assert filepaths, "good_file_paths() failed!"

_UpperCAmelCase					: Optional[Any]      =       [file for file in filepaths if file != file.lower()]
if upper_files:
					print(F'''{len(upper_files)} files contain uppercase characters:''')
					print("\n".join(upper_files) + "\n")

_UpperCAmelCase					: Tuple      =       [file for file in filepaths if " " in file]
if space_files:
					print(F'''{len(space_files)} files contain space characters:''')
					print("\n".join(space_files) + "\n")

_UpperCAmelCase					: int      =       [file for file in filepaths if "-" in file]
if hyphen_files:
					print(F'''{len(hyphen_files)} files contain hyphen characters:''')
					print("\n".join(hyphen_files) + "\n")

_UpperCAmelCase					: Union[str, Any]      =       [file for file in filepaths if os.sep not in file]
if nodir_files:
					print(F'''{len(nodir_files)} files are not in a directory:''')
					print("\n".join(nodir_files) + "\n")

_UpperCAmelCase					: Any      =       len(upper_files + space_files + hyphen_files + nodir_files)
if bad_files:
					import sys

					sys.exit(bad_files)


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


def       A       (					lowercase )   ->  str:
		'''simple docstring'''

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

		UpperCamelCase		=     precision
		UpperCamelCase		=     ceil(precision / 14 )
		UpperCamelCase		=     426_880 * Decimal(10_005 ).sqrt()
		UpperCamelCase		=     1
		UpperCamelCase		=     13_591_409
		UpperCamelCase		=     Decimal(lowercase )
		for k in range(1    ,       lowercase ):
				UpperCamelCase		=     factorial(6 * k ) // (factorial(3 * k ) * factorial(lowercase ) ** 3)
				linear_term += 545_140_134
				exponential_term *= -262_537_412_640_768_000
				partial_sum += Decimal(multinomial_term * linear_term ) / exponential_term
		return str(constant_term / partial_sum )[:-1]


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