
"""simple docstring"""


def        _lowerCamelCase(__UpperCamelCase			)							->					int:

	# validate:
	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()
	_lowerCAmelCase								=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"""


from ..utils import DummyObject, requires_backends


__A					=			None



def        _lowerCamelCase(*__UpperCamelCase       ,					**__UpperCamelCase			)							->					Tuple:
	requires_backends(__UpperCamelCase       ,					["""sentencepiece""", """tokenizers"""]			)



