




'''simple docstring'''



from __future__ import annotations
def SCREAMING_SNAKE_CASE_				(							__A       :				Tuple						)				->				int | float:
   _SCREAMING_SNAKE_CASE =   sorted(lowerCamelCase__						)
   _SCREAMING_SNAKE_CASE =   len(lowerCamelCase__						)
   _SCREAMING_SNAKE_CASE =   length >> 1
   return (
       (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
       if length % 2 == 0
       else sorted_list[mid_index]
   )
def SCREAMING_SNAKE_CASE_				(							)				->				List[str]:
   import doctest

   doctest.testmod()


if __name__ == "__main__":
 main()







'''simple docstring'''



def 				SCREAMING_SNAKE_CASE_				(							__A       :				List[Any] ,  __A       :				Dict						)				->				Union[str, Any]:
   if n == 0:
      return 1

   elif n % 2 == 1:
      return binary_exponentiation(__A ,  n - 1						) * a

   else:
      _SCREAMING_SNAKE_CASE =   binary_exponentiation(__A ,  n / 2						)
      return b * b


if __name__ == "__main__":
 try:
  lowerCamelCase_	 =		int(input('Enter Base : ').strip())
  lowerCamelCase_	 =		int(input('Enter Power : ').strip())
 except ValueError:
  print('Invalid literal for integer')

 lowerCamelCase_	 =		binary_exponentiation(BASE, POWER)
 print(f'''{BASE}^({POWER}) : {RESULT}''')

