


'''simple docstring'''





import math


def      a	(							SCREAMING_SNAKE_CASE_      :		Optional[int]							,			SCREAMING_SNAKE_CASE_      :		str       ):






       """simple docstring"""





       if 0 not in (x, y):
              # We use the relation x^y = y*log10(x), where 10 is the base.
              return y * math.logaa(lowerCamelCase_       )
       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.
  __UpperCAmelCase : List[str] 			=				"Enter the base and the power separated by a comma: "
  __UpperCAmelCase			,    __UpperCAmelCase : Optional[Any] 			=				map(int, input(prompt).split(","))
  __UpperCAmelCase			,    __UpperCAmelCase : List[str] 			=				map(int, input(prompt).split(","))

  # We find the log of each number, using the function res(), which takes two
  # arguments.
  __UpperCAmelCase : List[str] 			=				res(xa, ya)
  __UpperCAmelCase : List[Any] 			=				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")





from .imports import is_tqdm_available


if is_tqdm_available():
  from tqdm.auto import tqdm as _tqdm

from ..state import PartialState


def      a	(							SCREAMING_SNAKE_CASE_      :		bool = True							,			*SCREAMING_SNAKE_CASE_      :		List[str]							,			**SCREAMING_SNAKE_CASE_      :		Tuple       ):






       """simple docstring"""





       if not is_tqdm_available():
              raise ImportError('''Accelerate\'s `tqdm` module requires `tqdm` to be installed. Please run `pip install tqdm`.'''       )
       UpperCamelCase    :	int   	=		False
       if main_process_only:
              UpperCamelCase    :	int   	=		PartialState().local_process_index == 0
       return _tqdm(*SCREAMING_SNAKE_CASE_							,			**SCREAMING_SNAKE_CASE_							,			disable=SCREAMING_SNAKE_CASE_       )

