"""simple docstring"""




import enum
import shutil
import sys


_a    ,   _a      :		int           =   shutil.get_terminal_size()

_a      :		Optional[Any]           =   {'UP': 'A', 'DOWN': 'B', 'RIGHT': 'C', 'LEFT': 'D'}
class 						__A							( enum.Enum		):
     _UpperCamelCase							:			int							=		0
     _UpperCamelCase							:			List[str]							=		1







def 							SCREAMING_SNAKE_CASE     (			_lowerCamelCase						:       Optional[Any]			,_lowerCamelCase						:       Tuple=""	)       ->      Optional[int]:
  sys.stdout.write(str(_lowerCamelCase	) + end	)
  sys.stdout.flush()





def 							SCREAMING_SNAKE_CASE     (			_lowerCamelCase						:       List[Any]			,_lowerCamelCase						:       str			,_lowerCamelCase						:       Union[str, Any]=""	)       ->      Optional[int]:
  forceWrite(f"\u001b[{color}m{content}\u001b[0m"			,_lowerCamelCase	)





def 							SCREAMING_SNAKE_CASE     (			)       ->      int:
  forceWrite("""\r"""	)





def 							SCREAMING_SNAKE_CASE     (			_lowerCamelCase						:       int			,_lowerCamelCase						:       str	)       ->      Optional[Any]:
  forceWrite(f"\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}"	)





def 							SCREAMING_SNAKE_CASE     (			)       ->      List[Any]:
  forceWrite(""" """ * TERMINAL_WIDTH	)
  reset_cursor()






def 							SCREAMING_SNAKE_CASE     (			)       ->      Any:
  reset_cursor()
  forceWrite("""-""" * TERMINAL_WIDTH	)





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





def 				UpperCAmelCase						(    lowercase							):







				"""simple docstring"""



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

				__lowercase 			=							precision
				__lowercase 			=							ceil(precision / 14							)
				__lowercase 			=							426880 * Decimal(10005							).sqrt()
				__lowercase 			=							1
				__lowercase 			=							13591409
				__lowercase 			=							Decimal(lowercase							)
				for k in range(1							,			lowercase							):
								__lowercase 			=							factorial(6 * k							) // (factorial(3 * k							) * factorial(lowercase							) ** 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__":
		__a  :     Optional[Any]       =  5_0
		print(F'''The first {n} digits of pi is: {pi(n)}''')