


"""simple docstring"""







def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					if len(lowerCAmelCase_       ) < 2:
										return collection

					def circle_sort_util(lowerCAmelCase_  ,						lowerCAmelCase_  ,						lowerCAmelCase_       ) -> bool:
										__SCREAMING_SNAKE_CASE						       =    False

										if low == high:
															return swapped

										__SCREAMING_SNAKE_CASE						       =    low
										__SCREAMING_SNAKE_CASE						       =    high

										while left < right:
															if collection[left] > collection[right]:
																				__SCREAMING_SNAKE_CASE       ,  __SCREAMING_SNAKE_CASE						       =    (
																				    collection[right],
																				    collection[left],
																				)
																				__SCREAMING_SNAKE_CASE						       =    True

															left += 1
															right -= 1

										if left == right and collection[left] > collection[right + 1]:
															__SCREAMING_SNAKE_CASE       ,  __SCREAMING_SNAKE_CASE						       =    (
															    collection[right + 1],
															    collection[left],
															)

															__SCREAMING_SNAKE_CASE						       =    True

										__SCREAMING_SNAKE_CASE						       =    low + int((high - low) / 2       )
										__SCREAMING_SNAKE_CASE						       =    circle_sort_util(lowerCAmelCase_  ,						lowerCAmelCase_  ,						lowerCAmelCase_       )
										__SCREAMING_SNAKE_CASE						       =    circle_sort_util(lowerCAmelCase_  ,						mid + 1  ,						lowerCAmelCase_       )

										return swapped or left_swap or right_swap

					__SCREAMING_SNAKE_CASE						       =    True

					while is_not_sorted is True:
										__SCREAMING_SNAKE_CASE						       =    circle_sort_util(lowerCAmelCase_  ,						0  ,						len(lowerCAmelCase_       ) - 1       )

					return collection


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




"""simple docstring"""







from datetime import datetime

import requests




def        UpperCAmelCase__	(lowerCAmelCase_       ):




					'''simple docstring'''


					__SCREAMING_SNAKE_CASE						       =    "https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
					__SCREAMING_SNAKE_CASE						       =    requests.get(base_url + url       ).json()[0]["urls"][0]["src"]
					return requests.get(lowerCAmelCase_       ).content


if __name__ == "__main__":
		a__    :							str            =					input('''Enter Video/IGTV url: ''').strip()
		a__    :							List[Any]            =					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}.")
