
"""simple docstring"""





import numpy as np

from transformers import Pipeline
def 				A_  (__a					):

					'''simple docstring'''





					A_								=    np.max(__a					, axis=-1					, keepdims=__a					)
					A_								=    np.exp(outputs - maxes					)
					return shifted_exp / shifted_exp.sum(axis=-1					, keepdims=__a					)




class __lowerCAmelCase					(       _lowercase   ):




			"""simple docstring"""







			def   lowerCamelCase__  (					self    :       List[str]							, **_snake_case    :       List[Any]						)   ->			List[str]:







								"""simple docstring"""
								A_								=    {}
								if "second_text" in kwargs:
													A_								=    kwargs["second_text"]
								return preprocess_kwargs, {}, {}




			def   lowerCamelCase__  (					self    :       Any							, _snake_case    :       Optional[Any]							, _snake_case    :       Union[str, Any]=None						)   ->			int:







								"""simple docstring"""
								return self.tokenizer(_snake_case							, text_pair=_snake_case							, return_tensors=self.framework						)




			def   lowerCamelCase__  (					self    :       Optional[int]							, _snake_case    :       Tuple						)   ->			Optional[Any]:







								"""simple docstring"""
								return self.model(**_snake_case						)






			def   lowerCamelCase__  (					self    :       Optional[Any]							, _snake_case    :       Dict						)   ->			int:







								"""simple docstring"""
								A_								=    model_outputs.logits[0].numpy()
								A_								=    softmax(_snake_case						)

								A_								=    np.argmax(_snake_case						)
								A_								=    self.model.config.idalabel[best_class]
								A_								=    probabilities[best_class].item()
								A_								=    logits.tolist()
								return {"label": label, "score": score, "logits": logits}






"""simple docstring"""





def 				A_  (__a					):

					'''simple docstring'''





					A_								=    len(__a					)
					while cur > 1:
										# Find the maximum number in arr
										A_								=    arr.index(max(arr[0:cur]					)					)
										# Reverse from 0 to mi
										A_								=    arr[mi::-1] + arr[mi + 1 : len(__a					)]
										# Reverse whole list
										A_								=    arr[cur - 1 :: -1] + arr[cur : len(__a					)]
										cur -= 1
					return arr


if __name__ == "__main__":
		UpperCamelCase_       :    Optional[Any]						      =			input('''Enter numbers separated by a comma:\n''').strip()
		UpperCamelCase_       :    Any						      =			[int(item) for item in user_input.split(''',''')]
		print(pancake_sort(unsorted))




