

'''simple docstring'''
def  a__       (    _SCREAMING_SNAKE_CASE   :       list				)     ->					list:


	"""simple docstring"""





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

	UpperCAmelCase_     :      List[str]						=  []

	def generate(_SCREAMING_SNAKE_CASE   :       int	,				_SCREAMING_SNAKE_CASE   :       list				):
		if k == 1:
			res.append(tuple(arr[:]				)				)
			return

		generate(k - 1	,				_SCREAMING_SNAKE_CASE				)

		for i in range(k - 1				):
			if k % 2 == 0:  # k is even
				UpperCAmelCase_					,					UpperCAmelCase_     :      Optional[int]						=  arr[k - 1], arr[i]
			else:  # k is odd
				UpperCAmelCase_					,					UpperCAmelCase_     :      Union[str, Any]						=  arr[k - 1], arr[0]
			generate(k - 1	,				_SCREAMING_SNAKE_CASE				)

	generate(len(_SCREAMING_SNAKE_CASE				)	,				_SCREAMING_SNAKE_CASE				)
	return res


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










'''simple docstring'''







import socket







def 						_A      ( ):






   '''simple docstring'''







   A__       =     socket.socket(socket.AF_INET      ,socket.SOCK_STREAM						)
   A__       =     socket.gethostname()
   A__       =     12312

   sock.connect((host, port)						)
   sock.send(B'Hello server!'						)

   with open('Received_file'      ,'wb'						) as out_file:
      print('File opened'						)
      print('Receiving data...'						)
      while True:
         A__       =     sock.recv(1024						)
         if not data:
            break
         out_file.write(UpperCAmelCase						)

   print('Successfully received the file'						)
   sock.close()
   print('Connection closed'						)


if __name__ == "__main__":
    main()


