





"""simple docstring"""




from __future__ import annotations

from math import ceil, floor, sqrt






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    int = 200_0000					) ->int:






	'''simple docstring'''






	a      :		list[int]	=				[0]
	a      :		int

	for idx in range(1    ,       ceil(sqrt(target * 2					) * 1.1					)					):
		triangle_numbers.append(triangle_numbers[-1] + idx					)

	# we want this to be as close as possible to target
	a      :		int	=				0
	# the area corresponding to the grid that gives the product closest to target
	a      :		int	=				0
	# an estimate of b, using the quadratic formula
	a      :		float
	# the largest integer less than b_estimate
	a      :		int
	# the largest integer less than b_estimate
	a      :		int
	# the triangle number corresponding to b_floor
	a      :		int
	# the triangle number corresponding to b_ceil
	a      :		int

	for idx_a, triangle_a in enumerate(triangle_numbers[1:]    ,       1					):
		a      :		Union[str, Any]	=				(-1 + sqrt(1 + 8 * target / triangle_a					)) / 2
		a      :		Union[str, Any]	=				floor(_lowercase					)
		a      :		str	=				ceil(_lowercase					)
		a      :		Tuple	=				triangle_numbers[b_floor]
		a      :		Tuple	=				triangle_numbers[b_ceil]

		if abs(target - triangle_b_first_guess * triangle_a					) < abs(
		    target - best_product					):
			a      :		str	=				triangle_b_first_guess * triangle_a
			a      :		Union[str, Any]	=				idx_a * b_floor

		if abs(target - triangle_b_second_guess * triangle_a					) < abs(
		    target - best_product					):
			a      :		Dict	=				triangle_b_second_guess * triangle_a
			a      :		str	=				idx_a * b_ceil

	return area


if __name__ == "__main__":
		print(F'''{solution() = }''')









"""simple docstring"""




from datetime import datetime

import requests






def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    str					) ->bytes:






	'''simple docstring'''






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


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


