from __future__ import annotations




def       __lowerCAmelCase      (						A_   : list					)    ->  list:
  if len(A_					) == 0:
    return []
  __UpperCAmelCase    ,		__UpperCAmelCase						    =       min(A_					), max(A_					)
  __UpperCAmelCase						    =       int(max_value - min_value					) + 1
  __UpperCAmelCase						    =       [[] for _ in range(A_					)]

  for i in my_list:
    buckets[int(i - min_value					)].append(A_					)

  return [v for bucket in buckets for v in sorted(A_					)]


if __name__ == "__main__":
       from doctest import testmod

       testmod()
       assert bucket_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
       assert bucket_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]




from datetime import datetime

import requests




def       __lowerCAmelCase      (						A_   : str					)    ->  bytes:
  __UpperCAmelCase						    =       "https://downloadgram.net/wp-json/wppress/video-downloader/video?url="
  __UpperCAmelCase						    =       requests.get(base_url + url					).json()[0]["urls"][0]["src"]
  return requests.get(A_					).content


if __name__ == "__main__":
       a_							=      input("""Enter Video/IGTV url: """).strip()
       a_							=      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}.")



