


def 						_A						(						_lowercase ,   _lowercase      ) ->      List[str]:


     """simple docstring"""


     return number | (1 << position)






def 						_A						(						_lowercase ,   _lowercase      ) ->      Union[str, Any]:


     """simple docstring"""


     return number & ~(1 << position)






def 						_A						(						_lowercase ,   _lowercase      ) ->      List[str]:


     """simple docstring"""


     return number ^ (1 << position)






def 						_A						(						_lowercase ,   _lowercase      ) ->      Tuple:


     """simple docstring"""


     return ((number >> position) & 1) == 1






def 						_A						(						_lowercase ,   _lowercase      ) ->      Dict:


     """simple docstring"""


     return int((number & (1 << position)) != 0      )


if __name__ == "__main__":
    import doctest

    doctest.testmod()




def 				a						(							snake_case__:					list					):


				'''simple docstring'''

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

				lowercase_       =					[]

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

				generate(len(snake_case__					)						,   snake_case__					)
				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))




