





__A				:    Tuple       =   [
    [0, 16, 13, 0, 0, 0],
    [0, 0, 10, 12, 0, 0],
    [0, 4, 0, 0, 14, 0],
    [0, 0, 9, 0, 0, 20],
    [0, 0, 0, 7, 0, 4],
    [0, 0, 0, 0, 0, 0],
]





def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__ )  ->				str:







			'''simple docstring'''

			UpperCAmelCase   		=				[False] * len(UpperCamelCase__ )
			UpperCAmelCase   		=				[s]
			UpperCAmelCase   		=				True

			while queue:
						UpperCAmelCase   		=				queue.pop(0 )
						for ind in range(len(graph[u] ) ):
									if visited[ind] is False and graph[u][ind] > 0:
												queue.append(UpperCamelCase__ )
												UpperCAmelCase   		=				True
												UpperCAmelCase   		=				u

			return visited[t]





def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__ )  ->				Union[str, Any]:







			'''simple docstring'''

			UpperCAmelCase   		=				[-1] * (len(UpperCamelCase__ ))
			UpperCAmelCase   		=				0
			UpperCAmelCase   		=				[]
			UpperCAmelCase   		=				[i[:] for i in graph]  # Record original cut, copy.
			while bfs(UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__			,			UpperCamelCase__ ):
						UpperCAmelCase   		=				float('''Inf''' )
						UpperCAmelCase   		=				sink

						while s != source:
									# Find the minimum value in select path
									UpperCAmelCase   		=				min(UpperCamelCase__			,			graph[parent[s]][s] )
									UpperCAmelCase   		=				parent[s]

						max_flow += path_flow
						UpperCAmelCase   		=				sink

						while v != source:
									UpperCAmelCase   		=				parent[v]
									graph[u][v] -= path_flow
									graph[v][u] += path_flow
									UpperCAmelCase   		=				parent[v]

			for i in range(len(UpperCamelCase__ ) ):
						for j in range(len(graph[0] ) ):
									if graph[i][j] == 0 and temp[i][j] > 0:
												res.append((i, j) )

			return res


if __name__ == "__main__":
				print(mincut(test_graph, source=0, sink=5))










from datetime import datetime

import requests





def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__ )  ->				bytes:







			'''simple docstring'''

			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(UpperCamelCase__ ).content


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



