




from ....utils import logging


lowerCamelCase							:						str					       =  logging.get_logger(__name__)







class     A(		UpperCamelCase  ):



 '''simple docstring'''


 def __init__(							self   :    Union[str, Any]		,				A_   :    Any		,				A_   :    Any=None		,				A_   :    List[Any]=2048    )  ->      Any:

       """simple docstring"""






       lowerCamelCase_							=       config.__dict__
       lowerCamelCase_							=       modal_hidden_size
       if num_labels:
             lowerCamelCase_							=       num_labels




"""simple docstring"""


def      lowerCamelCase_					(   __lowerCAmelCase							)				->   list:




						'''simple docstring'''



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

						lowerCamelCase__   =[]

						def generate(__lowerCAmelCase  ,       __lowerCAmelCase							):
												lowerCamelCase__   =[0] * n
												res.append(tuple(__lowerCAmelCase							)							)

												lowerCamelCase__   =0
												while i < n:
																		if c[i] < i:
																								if i % 2 == 0:
																														lowerCamelCase__   , lowerCamelCase__   =arr[i], arr[0]
																								else:
																														lowerCamelCase__   , lowerCamelCase__   =arr[i], arr[c[i]]
																								res.append(tuple(__lowerCAmelCase							)							)
																								c[i] += 1
																								lowerCamelCase__   =0
																		else:
																								lowerCamelCase__   =0
																								i += 1

						generate(len(__lowerCAmelCase							)  ,       __lowerCAmelCase							)
						return res


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


