"""simple docstring"""




def 	UpperCAmelCase       (						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()






"""simple docstring"""




def 	UpperCAmelCase       (						UpperCamelCase__ = 100							,     UpperCamelCase__ = 100					):






							"""simple docstring"""





							return max(
							    sum(int(UpperCamelCase__					) for x in str(base**power					)					)
							    for base in range(UpperCamelCase__					)
							    for power in range(UpperCamelCase__					)					)


# Tests
if __name__ == "__main__":
				import doctest

				doctest.testmod()





