


'''simple docstring'''







import numpy as np

from transformers import Pipeline






def 			lowercase				(_A					):







       """simple docstring"""







       _lowerCAmelCase    :							int   			=       np.max(_A   ,						axis=-1   ,						keepdims=_A					)
       _lowerCAmelCase    :							Any   			=       np.exp(outputs - maxes					)
       return shifted_exp / shifted_exp.sum(axis=-1   ,						keepdims=_A					)
class 	UpperCamelCase__					( SCREAMING_SNAKE_CASE_	):



     """simple docstring"""






     def a	( self      ,	**snake_case__   ):

            '''simple docstring'''

            _lowerCAmelCase    :							str   			=       {}
            if "second_text" in kwargs:
                   _lowerCAmelCase    :							Optional[int]   			=       kwargs['second_text']
            return preprocess_kwargs, {}, {}







     def a	( self      ,	snake_case__      ,	snake_case__=None   ):

            '''simple docstring'''

            return self.tokenizer(snake_case__      ,	text_pair=snake_case__      ,	return_tensors=self.framework   )







     def a	( self      ,	snake_case__   ):

            '''simple docstring'''

            return self.model(**snake_case__   )







     def a	( self      ,	snake_case__   ):

            '''simple docstring'''

            _lowerCAmelCase    :							Optional[int]   			=       model_outputs.logits[0].numpy()
            _lowerCAmelCase    :							List[str]   			=       softmax(snake_case__   )

            _lowerCAmelCase    :							Any   			=       np.argmax(snake_case__   )
            _lowerCAmelCase    :							List[str]   			=       self.model.config.idalabel[best_class]
            _lowerCAmelCase    :							Tuple   			=       probabilities[best_class].item()
            _lowerCAmelCase    :							List[str]   			=       logits.tolist()
            return {"label": label, "score": score, "logits": logits}





'''simple docstring'''







def 			lowercase				(_A					):







       """simple docstring"""







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


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

