





'''simple docstring'''




lowercase__       : str         =       tuple[float, float, float]
lowercase__       : Dict         =       tuple[float, float, float]






def 			_lowerCAmelCase     (    __snake_case    :					Pointad					,				__snake_case    :					Pointad     )	->	Vectorad:
     __A		:					List[Any]						=			end_pointa[0] - end_pointa[0]
     __A		:					Union[str, Any]						=			end_pointa[1] - end_pointa[1]
     __A		:					Union[str, Any]						=			end_pointa[2] - end_pointa[2]
     return (x, y, z)






def 			_lowerCAmelCase     (    __snake_case    :					Vectorad					,				__snake_case    :					Vectorad     )	->	Vectorad:
     __A		:					Tuple						=			ab[1] * ac[2] - ab[2] * ac[1]  # *i
     __A		:					Union[str, Any]						=			(ab[0] * ac[2] - ab[2] * ac[0]) * -1  # *j
     __A		:					int						=			ab[0] * ac[1] - ab[1] * ac[0]  # *k
     return (x, y, z)






def 			_lowerCAmelCase     (    __snake_case    :					Vectorad					,				__snake_case    :					int     )	->	bool:
     return tuple(round(__snake_case					,				__snake_case     ) for x in vector     ) == (0, 0, 0)







def 			_lowerCAmelCase     (    __snake_case    :					Pointad					,				__snake_case    :					Pointad					,				__snake_case    :					Pointad					,				__snake_case    :					int = 10     )	->	bool:
     __A		:					int						=			create_vector(__snake_case					,				__snake_case     )
     __A		:					Union[str, Any]						=			create_vector(__snake_case					,				__snake_case     )
     return is_zero_vector(get_ad_vectors_cross(__snake_case					,				__snake_case     )					,				__snake_case     )

'''simple docstring'''




def 						lowerCAmelCase_							(  snake_case__		):




    '''simple docstring'''



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

    A			:  int   =		[]

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

    generate(len(snake_case__		)						,							snake_case__		)
    return res


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




