'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__a: Optional[Any]          =   {
    """configuration_x_clip""": [
        """XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """XCLIPConfig""",
        """XCLIPTextConfig""",
        """XCLIPVisionConfig""",
    ],
    """processing_x_clip""": ["""XCLIPProcessor"""],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __a: Tuple          =   [
      """XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """XCLIPModel""",
      """XCLIPPreTrainedModel""",
      """XCLIPTextModel""",
      """XCLIPVisionModel""",
  ]

if TYPE_CHECKING:
  from .configuration_x_clip import (
      XCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
      XCLIPConfig,
      XCLIPTextConfig,
      XCLIPVisionConfig,
  )
  from .processing_x_clip import XCLIPProcessor

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_x_clip import (
        XCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
        XCLIPModel,
        XCLIPPreTrainedModel,
        XCLIPTextModel,
        XCLIPVisionModel,
    )

else:
  import sys

  __a: Tuple          =   _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)


'''simple docstring'''

def 			__UpperCamelCase       (   UpperCAmelCase     ):
 lowercase__ ,							lowercase__				:    Optional[int]  =					[], []
 while len(UpperCAmelCase     ) > 1:
  lowercase__ ,							lowercase__				:    List[str]  =					min(UpperCAmelCase     ), max(UpperCAmelCase     )
  start.append(UpperCAmelCase     )
  end.append(UpperCAmelCase     )
  collection.remove(UpperCAmelCase     )
  collection.remove(UpperCAmelCase     )
 end.reverse()
 return start + collection + end


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

