'''simple docstring'''




import json
import os
from typing import Optional, Tuple

from ...tokenization_utils import PreTrainedTokenizer
from ...utils import logging


__UpperCAmelCase     							=logging.get_logger(__name__)

__UpperCAmelCase     							={"vocab_file": "vocab.json"}

__UpperCAmelCase     							={
    "vocab_file": {
        "mgp-str": "https://huggingface.co/alibaba-damo/mgp-str-base/blob/main/vocab.json",
    }
}

__UpperCAmelCase     							={"mgp-str": 2_7}




class     a__      (   snake_case_ ):
     lowerCamelCase  :     Union[str, Any]							=VOCAB_FILES_NAMES
     lowerCamelCase  :     Union[str, Any]							=PRETRAINED_VOCAB_FILES_MAP
     lowerCamelCase  :     Any							=PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES






     def __init__( self		:		Optional[int]  ,				a		:		Union[str, Any]  ,				a		:		List[Any]="[GO]"  ,				a		:		Any="[GO]"  ,				a		:		str="[s]"  ,				a		:		List[Any]="[GO]"  ,				**a		:		Any    ):





         """simple docstring"""



         super().__init__(
             unk_token=a  ,				bos_token=a  ,				eos_token=a  ,				pad_token=a  ,				**a  ,				)

         with open(a  ,				encoding='''utf-8'''    ) as vocab_handle:
             __lowerCamelCase		=  json.load(a    )
         __lowerCamelCase		=  {v: k for k, v in self.vocab.items()}






     @property
     def    SCREAMING_SNAKE_CASE__   ( self		:		Tuple    ):





         """simple docstring"""



         return len(self.vocab    )






     def    SCREAMING_SNAKE_CASE__   ( self		:		str    ):





         """simple docstring"""



         return dict(self.vocab  ,				**self.added_tokens_encoder    )






     def    SCREAMING_SNAKE_CASE__   ( self		:		int  ,				a		:		List[Any]    ):





         """simple docstring"""



         __lowerCamelCase		=  []
         for s in text:
             char_tokens.extend(a    )
         return char_tokens






     def    SCREAMING_SNAKE_CASE__   ( self		:		Dict  ,				a		:		Optional[int]    ):





         """simple docstring"""



         return self.vocab.get(a  ,				self.vocab.get(self.unk_token    )    )






     def    SCREAMING_SNAKE_CASE__   ( self		:		Any  ,				a		:		Any    ):





         """simple docstring"""



         return self.decoder.get(a    )






     def    SCREAMING_SNAKE_CASE__   ( self		:		List[str]  ,				a		:		int  ,				a		:		List[str] = None    ):





         """simple docstring"""



         if not os.path.isdir(a    ):
             logger.error('''Vocabulary path ({}) should be a directory'''.format(a    )    )
             return
         __lowerCamelCase		=  os.path.join(
             a  ,				(filename_prefix + '''-''' if filename_prefix else '''''') + VOCAB_FILES_NAMES['''vocab_file''']    )

         with open(a  ,				'''w'''  ,				encoding='''utf-8'''    ) as f:
             f.write(json.dumps(self.vocab  ,				indent=2  ,				sort_keys=a  ,				ensure_ascii=a    ) + '''\n'''    )

         return (vocab_file,)


import math





def 			lowerCamelCase_ (				lowerCamelCase__	, lowerCamelCase__    ):
				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.
			__A				='''Enter the base and the power separated by a comma: '''
			__A,						__A				=map(int, input(prompt).split(''','''))
			__A,						__A				=map(int, input(prompt).split(''','''))

			# We find the log of each number, using the function res(), which takes two
			# arguments.
			__A				=res(xa, ya)
			__A				=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''')


