





'''simple docstring'''

def 			lowerCAmelCase_						(    a					:					Dict				):
							# if the collection is empty, returns empty
							if collection == []:
														return []

							# get some information about the collection
							a__            =							len(UpperCAmelCase_				)
							a__            =							max(UpperCAmelCase_				)
							a__            =							min(UpperCAmelCase_				)

							# create the counting array
							a__            =							coll_max + 1 - coll_min
							a__            =							[0] * counting_arr_length

							# count how much a number appears in the collection
							for number in collection:
														counting_arr[number - coll_min] += 1

							# sum each position with it's predecessors. now, counting_arr[i] tells
							# us how many elements <= i has in the collection
							for i in range(1   , UpperCAmelCase_				):
														a__            =							counting_arr[i] + counting_arr[i - 1]

							# create the output collection
							a__            =							[0] * coll_len

							# place the elements in the output, respecting the original order (stable
							# sort) from end to begin, updating counting_arr
							for i in reversed(range(0   , UpperCAmelCase_				)				):
														a__            =							collection[i]
														counting_arr[collection[i] - coll_min] -= 1

							return ordered





def 			lowerCAmelCase_						(    a					:					List[str]				):
							return "".join([chr(UpperCAmelCase_				) for i in counting_sort([ord(UpperCAmelCase_				) for c in string]				)]				)


if __name__ == "__main__":
		# Test string sort
		assert counting_sort_string('thisisthestring') == "eghhiiinrsssttt"

		__A	: Optional[int]              =       input('Enter numbers separated by a comma:\n').strip()
		__A	: Optional[Any]              =       [int(item) for item in user_input.split(',')]
		print(counting_sort(unsorted))







import os
def 							SCREAMING_SNAKE_CASE_	(					)			->						List[str]:
       with open(os.path.dirname(UpperCAmelCase_				) + '''/p022_names.txt'''				) as file:
              SCREAMING_SNAKE_CASE_							:				Any		=str(file.readlines()[0]				)
              SCREAMING_SNAKE_CASE_							:				List[Any]		=names.replace('''"'''			,							''''''				).split(''','''				)

       names.sort()

       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0
       SCREAMING_SNAKE_CASE_							:				Optional[int]		=0

       for i, name in enumerate(UpperCAmelCase_				):
              for letter in name:
                     name_score += ord(UpperCAmelCase_				) - 6_4

              total_score += (i + 1) * name_score
              SCREAMING_SNAKE_CASE_							:				Any		=0
       return total_score


if __name__ == "__main__":
 print(solution())
