






"""simple docstring"""


def    lowerCAmelCase							(       __UpperCamelCase					):




  """simple docstring"""







  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()
  __A		     =					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 random


def 							__lowercase     (	UpperCAmelCase__   ):

					"""simple docstring"""






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

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


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






