'''simple docstring'''






def  _SCREAMING_SNAKE_CASE		(      __snake_case							:			list				):

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

     _A    		=  []

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

          generate(k - 1   ,		__snake_case				)

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

     generate(len(__snake_case				)   ,		__snake_case				)
     return res


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





"""simple docstring"""






import warnings

from ...utils import logging
from .image_processing_perceiver import PerceiverImageProcessor


UpperCAmelCase        =				logging.get_logger(__name__)



class 			lowercase					( lowercase__		):






			def __init__(self  :	str      ,*SCREAMING_SNAKE_CASE_  :	Any      ,**SCREAMING_SNAKE_CASE_  :	Optional[int]			)       ->	None:





				"""simple docstring"""


				warnings.warn(
				    '''The class PerceiverFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
				    ''' Please use PerceiverImageProcessor instead.'''      ,SCREAMING_SNAKE_CASE_      ,)
				super().__init__(*SCREAMING_SNAKE_CASE_      ,**SCREAMING_SNAKE_CASE_			)


