'''simple docstring'''




def      UpperCamelCase_							( _UpperCAmelCase  :				list[int]   )   ->   int:


       """simple docstring"""







       if not isinstance(_UpperCAmelCase      ,     _UpperCAmelCase   ) or not all(
           isinstance(_UpperCAmelCase      ,     _UpperCAmelCase   ) and item >= 0 for item in citations   ):
              raise ValueError("The citations should be a list of non negative integers."   )

       citations.sort()
       _UpperCAmelCase					:  str											=   len(_UpperCAmelCase   )

       for i in range(_UpperCAmelCase   ):
              if citations[len_citations - 1 - i] <= i:
                     return i

       return len_citations


if __name__ == "__main__":
  import doctest

  doctest.testmod()


'''simple docstring'''




def      UpperCamelCase_							( _UpperCAmelCase  :				int   )   ->   bool:


       """simple docstring"""







       _UpperCAmelCase					:  Optional[int]											=   9

       while num > 0:
              if num % 10 != digit:
                     return False
              num //= 100
              digit -= 1

       return True

def      UpperCamelCase_							( )   ->   int:


       """simple docstring"""







       _UpperCAmelCase					:  Optional[Any]											=   138_902_663

       while not is_square_form(num * num   ):
              if num % 10 == 3:
                     num -= 6  # (3 - 6) % 10 = 7
              else:
                     num -= 4  # (7 - 4) % 10 = 3

       return num * 10


if __name__ == "__main__":
  print(F'{solution() = }')

