"""simple docstring"""






def   a_						(					lowerCamelCase       ):

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

				UpperCAmelCase__             =							[]

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

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

				generate(len(lowerCamelCase       )					,			lowerCamelCase       )
				return res


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










from argparse import ArgumentParser

from .env import EnvironmentCommand



def    __lowercase   (      ) ->   Dict:


      '''simple docstring'''


      SCREAMING_SNAKE_CASE		=						ArgumentParser("""Diffusers CLI tool""" ,						usage="""diffusers-cli <command> [<args>]"""	)
      SCREAMING_SNAKE_CASE		=						parser.add_subparsers(help="""diffusers-cli command helpers"""	)

      # Register commands
      EnvironmentCommand.register_subcommand(_SCREAMING_SNAKE_CASE	)

      # Let's go
      SCREAMING_SNAKE_CASE		=						parser.parse_args()

      if not hasattr(_SCREAMING_SNAKE_CASE ,						"""func"""	):
            parser.print_help()
            exit(1	)

      # Run
      SCREAMING_SNAKE_CASE		=						args.func(_SCREAMING_SNAKE_CASE	)
      service.run()


if __name__ == "__main__":
      main()


