



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






def     __a					(		__UpperCAmelCase       ):

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

 a__												= precision
 a__												= ceil(precision / 14       )
 a__												= 42_6880 * Decimal(1_0005       ).sqrt()
 a__												= 1
 a__												= 1359_1409
 a__												= Decimal(__UpperCAmelCase       )
 for k in range(1							,  __UpperCAmelCase       ):
  a__												= factorial(6 * k       ) // (factorial(3 * k       ) * factorial(__UpperCAmelCase       ) ** 3)
  linear_term += 5_4514_0134
  exponential_term *= -26_2537_4126_4076_8000
  partial_sum += Decimal(multinomial_term * linear_term       ) / exponential_term
 return str(constant_term / partial_sum       )[:-1]


if __name__ == "__main__":
     a_      :      Any    =     50
     print(f'The first {n} digits of pi is: {pi(n)}')










import requests
from bsa import BeautifulSoup






def     __a					(		__UpperCAmelCase							,  __UpperCAmelCase       ):
 a__												= BeautifulSoup(requests.get(__UpperCAmelCase							,  params=__UpperCAmelCase       ).content							,  '''html.parser'''       )
 a__												= soup.find('''div'''							,  attrs={'''class''': '''gs_ri'''}       )
 a__												= div.find('''div'''							,  attrs={'''class''': '''gs_fl'''}       ).find_all('''a'''       )
 return anchors[2].get_text()


if __name__ == "__main__":
     a_      :      Optional[Any]    =     {
         'title': (
             'Precisely geometry controlled microsupercapacitors for ultrahigh areal '
             'capacitance, volumetric capacitance, and energy density'
         ),
         'journal': 'Chem. Mater.',
         'volume': 30,
         'pages': '3979-3990',
         'year': 20_18,
         'hl': 'en',
     }
     print(get_citation('https://scholar.google.com/scholar_lookup', params=params))





