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






def   lowerCamelCase__							(					a      )      ->   str:

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

   _A:  Tuple					=       precision
   _A:  Optional[int]					=       ceil(precision / 14      )
   _A:  Optional[Any]					=       42_68_80 * Decimal(1_00_05      ).sqrt()
   _A:  int					=       1
   _A:  List[str]					=       13_59_14_09
   _A:  Union[str, Any]					=       Decimal(_UpperCAmelCase      )
   for k in range(1		,		_UpperCAmelCase      ):
      _A:  int					=       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__":
   UpperCAmelCase__		:     List[str]     			=      50
   print(F"""The first {n} digits of pi is: {pi(n)}""")










from __future__ import annotations

from typing import Any


def        SCREAMING_SNAKE_CASE      (       _UpperCAmelCase )			->     None:
    create_state_space_tree(_UpperCAmelCase						,	[]						,	0 )


def        SCREAMING_SNAKE_CASE      (       _UpperCAmelCase						,	_UpperCAmelCase						,	_UpperCAmelCase )			->     None:

    if index == len(_UpperCAmelCase ):
        print(_UpperCAmelCase )
        return

    create_state_space_tree(_UpperCAmelCase						,	_UpperCAmelCase						,	index + 1 )
    current_subsequence.append(sequence[index] )
    create_state_space_tree(_UpperCAmelCase						,	_UpperCAmelCase						,	index + 1 )
    current_subsequence.pop()


if __name__ == "__main__":
    _UpperCAmelCase				:       list[Any]	   =				[3, 1, 2, 4]
    generate_all_subsequences(seq)

    seq.clear()
    seq.extend(["""A""", """B""", """C"""])
    generate_all_subsequences(seq)





