


'''simple docstring'''




def 	a_					( lowerCamelCase	:     list				):

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

   lowerCAmelCase     =			[]

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

      generate(k - 1	, lowerCamelCase				)

      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	, lowerCamelCase				)

   generate(len(lowerCamelCase				)	, lowerCamelCase				)
   return res


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









'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


__snake_case    						=logging.get_logger(__name__)

class 		UpperCAmelCase_      (  __lowercase		):





     def __init__( self       :      Dict    ,      *UpperCAmelCase__       :      Dict    ,      **UpperCAmelCase__       :      List[str]    )				->  None:
        warnings.warn(
            'The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
            ' use FlavaImageProcessor instead.'    ,      UpperCAmelCase__    ,      )
        super().__init__(*UpperCAmelCase__    ,      **UpperCAmelCase__    )





