





import math





def    __UpperCamelCase      (    a) ->Optional[int]:
					return math.sqrt(__A) * math.sqrt(__A) == num





def    __UpperCamelCase      (    a) ->Union[str, Any]:
					lowerCamelCase__       =       0
					lowerCamelCase__       =       n
					while left <= right:
										lowerCamelCase__       =       (left + right) // 2
										if mid**2 == n:
															return True
										elif mid**2 > n:
															lowerCamelCase__       =       mid - 1
										else:
															lowerCamelCase__       =       mid + 1
					return False


if __name__ == "__main__":
						import doctest

						doctest.testmod()








from typing import TYPE_CHECKING

from ...utils import _LazyModule


A_												=     {"tokenization_byt5": ["ByT5Tokenizer"]}


if TYPE_CHECKING:
						from .tokenization_byta import ByTaTokenizer
else:
						import sys

						A_												=     _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

