
"""simple docstring"""
def 					a__ ( a :					list[int]		):

  """simple docstring"""







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

  citations.sort()
  _snake_case  :    Optional[Any]            = len(a		)

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

  return len_citations


if __name__ == "__main__":
    import doctest

    doctest.testmod()




import random


def        _UpperCAmelCase							(	_SCREAMING_SNAKE_CASE       :		List[Any]							):





    """simple docstring"""


    def is_sorted(_SCREAMING_SNAKE_CASE       :		List[Any]							):
        for i in range(len(_SCREAMING_SNAKE_CASE							) - 1							):
            if collection[i] > collection[i + 1]:
                return False
        return True

    while not is_sorted(_SCREAMING_SNAKE_CASE							):
        random.shuffle(_SCREAMING_SNAKE_CASE							)
    return collection


if __name__ == "__main__":
       UpperCamelCase__	:   Tuple								=     input("Enter numbers separated by a comma:\n").strip()
       UpperCamelCase__	:   List[str]								=     [int(item) for item in user_input.split(",")]
       print(bogo_sort(unsorted))


