"""simple docstring"""
import argparse
from collections import defaultdict

import yaml


lowercase__ 	=     'docs/source/en/_toctree.yml'







def 						__a       (     _SCREAMING_SNAKE_CASE       )     ->List[Any]:
  a__:					str      							=     defaultdict(_SCREAMING_SNAKE_CASE       )
  for doc in model_doc:
    counts[doc["local"]] += 1
  a__:					List[Any]      							=     [key for key, value in counts.items() if value > 1]

  a__:					str      							=     []
  for duplicate_key in duplicates:
    a__:					str      							=     list({doc['title'] for doc in model_doc if doc['local'] == duplicate_key}       )
    if len(_SCREAMING_SNAKE_CASE       ) > 1:
      raise ValueError(
          F'{duplicate_key} is present several times in the documentation table of content at '
          '`docs/source/en/_toctree.yml` with different *Title* values. Choose one of those and remove the '
          'others.'       )
    # Only add this once
    new_doc.append({'local': duplicate_key, 'title': titles[0]}       )

  # Add none duplicate-keys
  new_doc.extend([doc for doc in model_doc if counts[doc['local']] == 1]       )

  # Sort
  return sorted(_SCREAMING_SNAKE_CASE		,					key=lambda _SCREAMING_SNAKE_CASE       : s["title"].lower()       )







def 						__a       (     _SCREAMING_SNAKE_CASE=False       )     ->Tuple:
  with open(_SCREAMING_SNAKE_CASE		,					encoding='utf-8'       ) as f:
    a__:					Any      							=     yaml.safe_load(f.read()       )

  # Get to the API doc
  a__:					str      							=     0
  while content[api_idx]["title"] != "API":
    api_idx += 1
  a__:					str      							=     content[api_idx]['sections']

  # Then to the model doc
  a__:					int      							=     0
  while api_doc[model_idx]["title"] != "Models":
    model_idx += 1

  a__:					List[str]      							=     api_doc[model_idx]['sections']

  a__:					List[Any]      							=     [(idx, section) for idx, section in enumerate(_SCREAMING_SNAKE_CASE       ) if 'sections' in section]
  a__:					str      							=     False
  for idx, modality_doc in modalities_docs:
    a__:					Optional[int]      							=     modality_doc['sections']
    a__:					Tuple      							=     clean_model_doc_toc(_SCREAMING_SNAKE_CASE       )

    if old_modality_doc != new_modality_doc:
      a__:					List[str]      							=     True
      if overwrite:
        a__:					int      							=     new_modality_doc

  if diff:
    if overwrite:
      a__:					Tuple      							=     model_doc
      a__:					List[Any]      							=     api_doc
      with open(_SCREAMING_SNAKE_CASE		,					'w'		,					encoding='utf-8'       ) as f:
        f.write(yaml.dump(_SCREAMING_SNAKE_CASE		,					allow_unicode=_SCREAMING_SNAKE_CASE       )       )
    else:
      raise ValueError(
          'The model doc part of the table of content is not properly sorted, run `make style` to fix this.'       )


if __name__ == "__main__":
 lowercase__ 	=     argparse.ArgumentParser()
 parser.add_argument('--fix_and_overwrite', action='store_true', help='Whether to fix inconsistencies.')
 lowercase__ 	=     parser.parse_args()

 check_model_doc(args.fix_and_overwrite)



"""simple docstring"""
import math







def 						__a       (     _SCREAMING_SNAKE_CASE		,					_SCREAMING_SNAKE_CASE       )     ->Optional[int]:
  if 0 not in (x, y):
    # We use the relation x^y = y*log10(x), where 10 is the base.
    return y * math.logaa(_SCREAMING_SNAKE_CASE       )
  else:
    if x == 0:  # 0 raised to any number is 0
      return 0
    elif y == 0:
      return 1  # any number raised to 0 is 1
  raise AssertionError('This should never happen'       )


if __name__ == "__main__":  # Main function
 # Read two numbers from input and typecast them to int using map function.
 # Here x is the base and y is the power.
 lowercase__ 	=     'Enter the base and the power separated by a comma: '
 lowercase__	, lowercase__ 	=     map(int, input(prompt).split(','))
 lowercase__	, lowercase__ 	=     map(int, input(prompt).split(','))

 # We find the log of each number, using the function res(), which takes two
 # arguments.
 lowercase__ 	=     res(xa, ya)
 lowercase__ 	=     res(xa, ya)

 # We check for the largest number
 if resa > resa:
  print('Largest number is', xa, '^', ya)
 elif resa > resa:
  print('Largest number is', xa, '^', ya)
 else:
  print('Both are equal')


