



def        __a			(   __lowerCAmelCase   )     ->     Dict:
					# if the collection is empty, returns empty
					if collection == []:
										return []

					# get some information about the collection
					SCREAMING_SNAKE_CASE							:     Optional[int]						=				len(__lowerCAmelCase   )
					SCREAMING_SNAKE_CASE							:     Optional[Any]						=				max(__lowerCAmelCase   )
					SCREAMING_SNAKE_CASE							:     Optional[Any]						=				min(__lowerCAmelCase   )

					# create the counting array
					SCREAMING_SNAKE_CASE							:     Optional[Any]						=				coll_max + 1 - coll_min
					SCREAMING_SNAKE_CASE							:     str						=				[0] * counting_arr_length

					# count how much a number appears in the collection
					for number in collection:
										counting_arr[number - coll_min] += 1

					# sum each position with it's predecessors. now, counting_arr[i] tells
					# us how many elements <= i has in the collection
					for i in range(1      ,	__lowerCAmelCase   ):
										SCREAMING_SNAKE_CASE							:     List[str]						=				counting_arr[i] + counting_arr[i - 1]

					# create the output collection
					SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				[0] * coll_len

					# place the elements in the output, respecting the original order (stable
					# sort) from end to begin, updating counting_arr
					for i in reversed(range(0      ,	__lowerCAmelCase   )   ):
										SCREAMING_SNAKE_CASE							:     Optional[int]						=				collection[i]
										counting_arr[collection[i] - coll_min] -= 1

					return ordered

def        __a			(   __lowerCAmelCase   )     ->     Union[str, Any]:
					return "".join([chr(__lowerCAmelCase   ) for i in counting_sort([ord(__lowerCAmelCase   ) for c in string]   )]   )


if __name__ == "__main__":
			# Test string sort
			assert counting_sort_string("""thisisthestring""") == "eghhiiinrsssttt"

			_lowerCamelCase    :		Optional[int]		      =    input("""Enter numbers separated by a comma:\n""").strip()
			_lowerCamelCase    :		List[str]		      =    [int(item) for item in user_input.split(""",""")]
			print(counting_sort(unsorted))




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