




"""simple docstring"""





def 		lowerCAmelCase				(			lowerCamelCase		):
						'''simple docstring'''


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

						citations.sort()
						snake_case__							:       Dict				      =       len(__A		)

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

						return len_citations


if __name__ == "__main__":
							import doctest

							doctest.testmod()








def   A		(__A  :       int			)  -> int:







     """simple docstring"""


     if not isinstance(__A  ,							__A			):
          UpperCAmelCase_		=				F"""Input value of [number={number}] must be an integer"""
          raise TypeError(__A			)
     if number < 1:
          raise ValueError('''Input must be a positive integer'''			)
     return number * (2 * number - 1)


if __name__ == "__main__":
    import doctest

    doctest.testmod()






