





'''simple docstring'''




def 	UpperCAmelCase_							(					__lowercase							:      int       )		->       bool:


     '''simple docstring'''



     if not isinstance(__lowercase			,     __lowercase       ):
          _UpperCAmelCase     							=   f'Input value of [number={number}] must be an integer'
          raise TypeError(__lowercase       )
     if number < 0:
          return False
     _UpperCAmelCase     							=   number * number
     while number > 0:
          if number % 10 != number_square % 10:
               return False
          number //= 10
          number_square //= 10
     return True


if __name__ == "__main__":
  import doctest

  doctest.testmod()











'''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()




