
"""simple docstring"""






def     lowerCAmelCase__ (		__magic_name__			)	->int:

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

			citations.sort()
			__lowercase						      =					len(snake_case_			)

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

			return len_citations


if __name__ == "__main__":
				import doctest

				doctest.testmod()







"""simple docstring"""






def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__			)	->list:
			__lowercase						      =					len(__magic_name__			)
			__lowercase						      =					len(__magic_name__			)
			__lowercase						      =					(
			    first_input_list_length
			    if first_input_list_length > second_input_list_length
			    else second_input_list_length
			)
			__lowercase						      =					[]
			for char_count in range(__magic_name__			):
						if char_count < first_input_list_length:
									output_result_list.append(first_input_list[char_count]			)
						if char_count < second_input_list_length:
									output_result_list.append(second_input_list[char_count]			)

			return output_result_list


if __name__ == "__main__":
					print(alternative_list_arrange(['''A''', '''B''', '''C'''], [1, 2, 3, 4, 5]), end=''' ''')





