






from __future__ import annotations


def __A       ( __lowerCAmelCase      )->    int | float:





						"""simple docstring"""



						_UpperCAmelCase							   =     sorted(__lowerCAmelCase      )
						_UpperCAmelCase							   =     len(__lowerCAmelCase      )
						_UpperCAmelCase							   =     length >> 1
						return (
						    (sorted_list[mid_index] + sorted_list[mid_index - 1]) / 2
						    if length % 2 == 0
						    else sorted_list[mid_index]
						)


def __A       ( )->    List[str]:





						"""simple docstring"""



						import doctest

						doctest.testmod()


if __name__ == "__main__":
		main()








def __A       ( __lowerCAmelCase = 100					,						__lowerCAmelCase = 100      )->    int:





						"""simple docstring"""



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


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

		doctest.testmod()
