



from __future__ import annotations

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )     ->     None:
					if (direction == 1 and array[indexa] > array[indexa]) or (
					    direction == 0 and array[indexa] < array[indexa]
					):
										SCREAMING_SNAKE_CASE					,  SCREAMING_SNAKE_CASE							:     Optional[int]						=				array[indexa], array[indexa]

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )     ->     None:
					if length > 1:
										SCREAMING_SNAKE_CASE							:     Dict						=				int(length / 2   )
										for i in range(__lowerCAmelCase      ,	low + middle   ):
															comp_and_swap(__lowerCAmelCase      ,	__lowerCAmelCase      ,	i + middle      ,	__lowerCAmelCase   )
										bitonic_merge(__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )
										bitonic_merge(__lowerCAmelCase      ,	low + middle      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )

def        __a			(   __lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )     ->     None:
					if length > 1:
										SCREAMING_SNAKE_CASE							:     Any						=				int(length / 2   )
										bitonic_sort(__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	1   )
										bitonic_sort(__lowerCAmelCase      ,	low + middle      ,	__lowerCAmelCase      ,	0   )
										bitonic_merge(__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase      ,	__lowerCAmelCase   )


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

			bitonic_sort(unsorted, 0, len(unsorted), 1)
			print("""\nSorted array in ascending order is: """, end="""""")
			print(*unsorted, sep=""", """)

			bitonic_merge(unsorted, 0, len(unsorted), 0)
			print("""Sorted array in descending order is: """, end="""""")
			print(*unsorted, sep=""", """)




from datetime import datetime

import requests

def        __a			(   __lowerCAmelCase   )     ->     bytes:
					SCREAMING_SNAKE_CASE							:     int						=				'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
					SCREAMING_SNAKE_CASE							:     Any						=				requests.get(base_url + url   ).json()[0]['urls'][0]['src']
					return requests.get(__lowerCAmelCase   ).content


if __name__ == "__main__":
			_lowerCamelCase    :		List[Any]		      =    input("""Enter Video/IGTV url: """).strip()
			_lowerCamelCase    :		int		      =    f"""{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4"""
			with open(file_name, """wb""") as fp:
						fp.write(download_video(url))
			print(f"""Done. Video saved to disk as {file_name}.""")