

def       __lowerCamelCase			(				UpperCamelCase__   ):







       '''simple docstring'''






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

       snake_case_           =					[]

       def generate(UpperCamelCase__     ,							UpperCamelCase__   ):
              snake_case_           =					[0] * n
              res.append(tuple(__A   )   )

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

       generate(len(__A   )     ,							__A   )
       return res


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







# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from ...utils import deprecate
from ..controlnet.pipeline_flax_controlnet import FlaxStableDiffusionControlNetPipeline  # noqa: F401


deprecate(
    """stable diffusion controlnet""",
    """0.22.0""",
    """Importing `FlaxStableDiffusionControlNetPipeline` from diffusers.pipelines.stable_diffusion.flax_pipeline_stable_diffusion_controlnet is deprecated. Please import `from diffusers import FlaxStableDiffusionControlNetPipeline` instead.""",
    standard_warn=False,
    stacklevel=3,
)




