



'''simple docstring'''
def A__   (					UpperCAmelCase_							):

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

						_UpperCamelCase :		Any			    =       []

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

												generate(k - 1  ,  UpperCAmelCase_							)

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

						generate(len(UpperCAmelCase_							)  ,  UpperCAmelCase_							)
						return res


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







'''simple docstring'''
from torch import nn






def A__   (					UpperCAmelCase_							):
						if act_fn in ["swish", "silu"]:
												return nn.SiLU()
						elif act_fn == "mish":
												return nn.Mish()
						elif act_fn == "gelu":
												return nn.GELU()
						else:
												raise ValueError(f'Unsupported activation function: {act_fn}'							)


