"""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))




"""simple docstring"""






import requests
from bsa import BeautifulSoup



def   a_						(					lowerCamelCase					,			lowerCamelCase       ):
				UpperCAmelCase__             =							BeautifulSoup(requests.get(lowerCamelCase					,			params=lowerCamelCase       ).content					,			'html.parser'       )
				UpperCAmelCase__             =							soup.find('div'					,			attrs={'class': 'gs_ri'}       )
				UpperCAmelCase__             =							div.find('div'					,			attrs={'class': 'gs_fl'}       ).find_all('a'       )
				return anchors[2].get_text()


if __name__ == "__main__":
						lowerCAmelCase__  :  Optional[int]						     =	{
						    'title': (
						        'Precisely geometry controlled microsupercapacitors for ultrahigh areal '
						        'capacitance, volumetric capacitance, and energy density'
						    ),
						    'journal': 'Chem. Mater.',
						    'volume': 30,
						    'pages': '3979-3990',
						    'year': 2_018,
						    'hl': 'en',
						}
						print(get_citation('https://scholar.google.com/scholar_lookup', params=params))



