


def  a   (lowerCAmelCase__   ):
   __a					=  len(lowerCAmelCase__   )
   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(lowerCAmelCase__   )]
      # Reverse whole list
      __a					=  arr[cur - 1 :: -1] + arr[cur : len(lowerCAmelCase__   )]
      cur -= 1
   return arr


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








"""simple docstring"""

from typing import TYPE_CHECKING

from ..utils import _LazyModule


A_						:    str				=      {
    'config': [
        'EXTERNAL_DATA_FORMAT_SIZE_LIMIT',
        'OnnxConfig',
        'OnnxConfigWithPast',
        'OnnxSeq2SeqConfigWithPast',
        'PatchingSpec',
    ],
    'convert': ['export', 'validate_model_outputs'],
    'features': ['FeaturesManager'],
    'utils': ['ParameterFormat', 'compute_serialized_parameters_size'],
}


if TYPE_CHECKING:
							from .config import (
							    EXTERNAL_DATA_FORMAT_SIZE_LIMIT,
							    OnnxConfig,
							    OnnxConfigWithPast,
							    OnnxSeqaSeqConfigWithPast,
							    PatchingSpec,
							)
							from .convert import export, validate_model_outputs
							from .features import FeaturesManager
							from .utils import ParameterFormat, compute_serialized_parameters_size

else:
							import sys

							A_						:    Optional[Any]				=      _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





