




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		list[int]   )						->							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()
    UpperCAmelCase_											=  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()











import itertools




def       SCREAMING_SNAKE_CASE			( __UpperCamelCase    :		Tuple   )						->							List[Any]:
    return (
        int(''''''.join(combination[0:2]   )   ) * int(''''''.join(combination[2:5]   )   )
        == int(''''''.join(combination[5:9]   )   )
    ) or (
        int(''''''.join(combination[0]   )   ) * int(''''''.join(combination[1:5]   )   )
        == int(''''''.join(combination[5:9]   )   )
    )




def       SCREAMING_SNAKE_CASE			( )						->							Optional[Any]:
    return sum(
        {
            int(''''''.join(pandigital[5:9]   )   )
            for pandigital in itertools.permutations('''123456789'''   )
            if is_combination_valid(__UpperCamelCase   )
        }   )


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





