


"""simple docstring"""
from ..utils import DummyObject, requires_backends





class        snake_case__       (metaclass=snake_case__):





							'''simple docstring'''

							__lowercase:						int							 =      ["""speech"""]



							def __init__(			self							: List[Any]						,    *UpperCAmelCase_							: Tuple						,    **UpperCAmelCase_							: Union[str, Any]    )   ->List[str]:



														"""simple docstring"""



														requires_backends(self						,    ["""speech"""]    )





class        snake_case__       (metaclass=snake_case__):





							'''simple docstring'''

							__lowercase:						List[str]							 =      ["""speech"""]



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



														"""simple docstring"""



														requires_backends(self						,    ["""speech"""]    )







"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE			)      ->			list:

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

							snake_case_          =						[]

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

														generate(k - 1			,	_SCREAMING_SNAKE_CASE			)

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

							generate(len(_SCREAMING_SNAKE_CASE			)			,	_SCREAMING_SNAKE_CASE			)
							return res


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



