



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				0
			while len(SCREAMING_SNAKE_CASE_  ) > 1:
						lowercase__					  =				0
						# Consider two files with minimum cost to be merged
						for _ in range(2  ):
									lowercase__					  =				files.index(min(SCREAMING_SNAKE_CASE_  )  )
									temp += files[min_index]
									files.pop(SCREAMING_SNAKE_CASE_  )
						files.append(SCREAMING_SNAKE_CASE_  )
						optimal_merge_cost += temp
			return optimal_merge_cost


if __name__ == "__main__":
							import doctest

							doctest.testmod()









def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				0
			for ch in input_str:
						lowercase__					  =				ord(SCREAMING_SNAKE_CASE_  )
						lowercase__					  =				pow(2						,  SCREAMING_SNAKE_CASE_  )

						# If we already turned on bit for current character's unicode
						if bitmap >> ch_unicode & 1 == 1:
									return False
						bitmap |= ch_bit_index_on
			return True


if __name__ == "__main__":
							import doctest

							doctest.testmod()




