


"""simple docstring"""







def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    if b == 0:
        return 1
    if (b % 2) == 0:
        return actual_power(lowercase       ,    int(b / 2		)		) * actual_power(lowercase       ,    int(b / 2		)		)
    else:
        return a * actual_power(lowercase       ,    int(b / 2		)		) * actual_power(lowercase       ,    int(b / 2		)		)
def _A						(						lowercase       ,    lowercase		):







    """simple docstring"""
    if b < 0:
        return 1 / actual_power(lowercase       ,    lowercase		)
    return actual_power(lowercase       ,    lowercase		)


if __name__ == "__main__":
       print(power(-2, -3))






'''simple docstring'''




import math
def 	UpperCAmelCase_							(					__lowercase							:      int       )		->       bool:


     '''simple docstring'''



     return math.sqrt(__lowercase       ) * math.sqrt(__lowercase       ) == num
def 	UpperCAmelCase_							(					__lowercase							:      int       )		->       bool:


     '''simple docstring'''



     _UpperCAmelCase     							=   0
     _UpperCAmelCase     							=   n
     while left <= right:
          _UpperCAmelCase     							=   (left + right) // 2
          if mid**2 == n:
               return True
          elif mid**2 > n:
               _UpperCAmelCase     							=   mid - 1
          else:
               _UpperCAmelCase     							=   mid + 1
     return False


if __name__ == "__main__":
  import doctest

  doctest.testmod()




