


def __UpperCAmelCase       (		__A			)						->					Any:



       '''simple docstring'''





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


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









from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


A      = {"configuration_mmbt": ["MMBTConfig"]}

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    A      = ["MMBTForClassification", "MMBTModel", "ModalEmbeddings"]


if TYPE_CHECKING:
    from .configuration_mmbt import MMBTConfig

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_mmbt import MMBTForClassification, MMBTModel, ModalEmbeddings

else:
    import sys

    A      = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





