




'''simple docstring'''





def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		Tuple   )						->							Optional[int]:

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

    citations.sort()
    UpperCAmelCase_											=  len(lowerCAmelCase__   )

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

    return len_citations


if __name__ == "__main__":
 import doctest

 doctest.testmod()











def       SCREAMING_SNAKE_CASE			( )						->							List[Any]:
    UpperCAmelCase_											=  1

    while True:
        if (
            sorted(str(__UpperCamelCase   )   )
            == sorted(str(2 * i   )   )
            == sorted(str(3 * i   )   )
            == sorted(str(4 * i   )   )
            == sorted(str(5 * i   )   )
            == sorted(str(6 * i   )   )
        ):
            return i

        i += 1


if __name__ == "__main__":
 print(solution())





