



'''simple docstring'''



def 					UpperCAmelCase   (						A  :				List[str]				):
							return [
							    txt[:a] + txt[a].upper() + txt[a + 1 :]
							    for a in range(len(UpperCamelCase__				)				)
							    if txt[a].isalpha()
							]


if __name__ == "__main__":
							__import__('doctest').testmod()









'''simple docstring'''



from bisect import bisect
from itertools import accumulate
def 					UpperCAmelCase   (						A  :				Tuple					,		A  :				Optional[Any]					,		A  :				Dict					,		A  :				Any				):
							SCREAMING_SNAKE_CASE					:      List[str]     					=			sorted(zip(A					,		A				)					,		key=lambda A				: x[0] / x[1]					,		reverse=A				)
							SCREAMING_SNAKE_CASE					,SCREAMING_SNAKE_CASE					:      Dict     					=			[i[0] for i in r], [i[1] for i in r]
							SCREAMING_SNAKE_CASE					:      Union[str, Any]     					=			list(accumulate(A				)				)
							SCREAMING_SNAKE_CASE					:      List[Any]     					=			bisect(A					,		A				)
							return (
							    0
							    if k == 0
							    else sum(vl[:k]				) + (w - acc[k - 1]) * (vl[k]) / (wt[k])
							    if k != n
							    else sum(vl[:k]				)
							)


if __name__ == "__main__":
							import doctest

							doctest.testmod()




