





def        UpperCamelCase__				(		lowerCAmelCase  ):





      """simple docstring"""


      if len(a__  ) <= 1:
            return [tuple(a__  )]

      _lowerCAmelCase												=							[]

      def generate(lowerCAmelCase							,     lowerCAmelCase  ):
            if k == 1:
                  res.append(tuple(arr[:]  )  )
                  return

            generate(k - 1							,     a__  )

            for i in range(k - 1  ):
                  if k % 2 == 0:  # k is even
                        _lowerCAmelCase					,							_lowerCAmelCase												=							arr[k - 1], arr[i]
                  else:  # k is odd
                        _lowerCAmelCase					,							_lowerCAmelCase												=							arr[k - 1], arr[0]
                  generate(k - 1							,     a__  )

      generate(len(a__  )							,     a__  )
      return res


if __name__ == "__main__":
      A__    :       Dict              =input('''Enter numbers separated by a comma:\n''').strip()
      A__    :       Tuple              =[int(item) for item in user_input.split(''',''')]
      print(heaps(arr))













'''simple docstring'''






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


A__    :       int              ={'''tokenization_herbert''': ['''HerbertTokenizer''']}

try:
      if not is_tokenizers_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      A__    :       Dict              =['''HerbertTokenizerFast''']


if TYPE_CHECKING:
      from .tokenization_herbert import HerbertTokenizer

      try:
            if not is_tokenizers_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .tokenization_herbert_fast import HerbertTokenizerFast

else:
      import sys

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






