

"""simple docstring"""




def 						A							(  snake_case__     ):




			'''simple docstring'''


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

			SCREAMING_SNAKE_CASE__										=   []

			def generate(snake_case__		,					snake_case__     ):
						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
												SCREAMING_SNAKE_CASE__				,		SCREAMING_SNAKE_CASE__										=   arr[k - 1], arr[i]
									else:  # k is odd
												SCREAMING_SNAKE_CASE__				,		SCREAMING_SNAKE_CASE__										=   arr[k - 1], arr[0]
									generate(k - 1		,					snake_case__     )

			generate(len(snake_case__     )		,					snake_case__     )
			return res


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





"""simple docstring"""




# flake8: noqa
# Lint as: python3
A_				:      List[str]           =			[
    "VerificationMode",
    "Version",
    "disable_progress_bar",
    "enable_progress_bar",
    "is_progress_bar_enabled",
    "experimental",
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental


