




"""simple docstring"""




from __future__ import annotations

import os
from typing import Any

import requests

lowerCAmelCase				:     Union[str, Any]					=				"""https://api.github.com"""

# https://docs.github.com/en/free-pro-team@latest/rest/reference/users#get-the-authenticated-user
lowerCAmelCase				:     Optional[Any]					=				BASE_URL + """/user"""

# https://github.com/settings/tokens
lowerCAmelCase				:     List[Any]					=				os.environ.get("""USER_TOKEN""", """""")



def        a__					(							snake_case__							)		->   dict[Any, Any]:
			lowerCamelCase      =   {
			    """Authorization""": F'token {auth_token}',
			    """Accept""": """application/vnd.github.v3+json""",
			}
			return requests.get(snake_case__			,					headers=snake_case__							).json()


if __name__ == "__main__":  # pragma: no cover
					if USER_TOKEN:
										for key, value in fetch_github_info(USER_TOKEN).items():
															print(F"""{key}: {value}""")
					else:
										raise ValueError("""'USER_TOKEN' field cannot be empty.""")









"""simple docstring"""




def        a__					(							snake_case__							)		->   list:

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

			lowerCamelCase      =   []

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

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

			generate(len(snake_case__							)			,					snake_case__							)
			return res


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



