



'''simple docstring'''
from math import ceil, sqrt






def A__   (					UpperCAmelCase_ = 1_0_0_0_0_0_0							):
						_UpperCamelCase :		Union[str, Any]			    =       0

						for outer_width in range(3  ,  (limit // 4) + 2							):
												if outer_width**2 > limit:
																		_UpperCamelCase :		Tuple			    =       max(ceil(sqrt(outer_width**2 - limit							)							)  ,  1							)
												else:
																		_UpperCamelCase :		Any			    =       1
												if (outer_width - hole_width_lower_bound) % 2:
																		hole_width_lower_bound += 1

												answer += (outer_width - hole_width_lower_bound - 2) // 2 + 1

						return answer


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







'''simple docstring'''
from datetime import datetime

import requests






def A__   (					UpperCAmelCase_							):
						_UpperCamelCase :		List[Any]			    =       'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
						_UpperCamelCase :		Optional[int]			    =       requests.get(base_url + url							).json()[0]['urls'][0]['src']
						return requests.get(UpperCAmelCase_							).content


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


