
'''simple docstring'''







from datetime import datetime

import requests



def 			_a		(	_SCREAMING_SNAKE_CASE		:   str  ):
						_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(_A  ).content


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

'''simple docstring'''







def 			_a		(	_SCREAMING_SNAKE_CASE		:   list[int]	,			_SCREAMING_SNAKE_CASE		:   list[int]  ):

						# Check if the input is valid
						if not len(_SCREAMING_SNAKE_CASE  ) == len(_SCREAMING_SNAKE_CASE  ) == 3:
												raise ValueError("Please enter a valid equation."  )
						if equationa[0] == equationa[1] == equationa[0] == equationa[1] == 0:
												raise ValueError("Both a & b of two equations can't be zero."  )

						# Extract the coefficients
						_SCREAMING_SNAKE_CASE,							_SCREAMING_SNAKE_CASE,							_SCREAMING_SNAKE_CASE				= equationa
						_SCREAMING_SNAKE_CASE,							_SCREAMING_SNAKE_CASE,							_SCREAMING_SNAKE_CASE				= equationa

						# Calculate the determinants of the matrices
						_SCREAMING_SNAKE_CASE				= aa * ba - aa * ba
						_SCREAMING_SNAKE_CASE				= ca * ba - ca * ba
						_SCREAMING_SNAKE_CASE				= aa * ca - aa * ca

						# Check if the system of linear equations has a solution (using Cramer's rule)
						if determinant == 0:
												if determinant_x == determinant_y == 0:
																		raise ValueError("Infinite solutions. (Consistent system)"  )
												else:
																		raise ValueError("No solution. (Inconsistent system)"  )
						else:
												if determinant_x == determinant_y == 0:
																		# Trivial solution (Inconsistent system)
																		return (0.0, 0.0)
												else:
																		_SCREAMING_SNAKE_CASE				= determinant_x / determinant
																		_SCREAMING_SNAKE_CASE				= determinant_y / determinant
																		# Non-Trivial Solution (Consistent system)
																		return (x, y)