
from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
							__lowerCAmelCase					   =       input('Enter image url: ').strip()
							print(F'''Downloading image from {url} ...''')
							__lowerCAmelCase					   =       BeautifulSoup(requests.get(url).content, 'html.parser')
							# The image URL is in the content field of the first meta tag with property og:image
							__lowerCAmelCase					   =       soup.find('meta', {'property': 'og:image'})['content']
							__lowerCAmelCase					   =       requests.get(image_url).content
							__lowerCAmelCase					   =       F'''{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg'''
							with open(file_name, 'wb') as fp:
														fp.write(image_data)
							print(F'''Done. Image saved to disk as {file_name}.''')

import os


def    a      ( a = "matrix.txt"	)     ->int:




			'''simple docstring'''


			with open(os.path.join(os.path.dirname(a	)		,						a	)	) as in_file:
						SCREAMING_SNAKE_CASE     						= in_file.read()

			SCREAMING_SNAKE_CASE     						= [[int(a	) for cell in row.split(''','''	)] for row in data.strip().splitlines()]
			SCREAMING_SNAKE_CASE     						= [[0 for cell in row] for row in grid]
			SCREAMING_SNAKE_CASE     						= len(grid[0]	)

			SCREAMING_SNAKE_CASE     						= [[0 for i in range(a	)] for j in range(a	)]
			SCREAMING_SNAKE_CASE     						= grid[0][0]
			for i in range(1		,						a	):
						SCREAMING_SNAKE_CASE     						= grid[0][i] + dp[0][i - 1]
			for i in range(1		,						a	):
						SCREAMING_SNAKE_CASE     						= grid[i][0] + dp[i - 1][0]

			for i in range(1		,						a	):
						for j in range(1		,						a	):
									SCREAMING_SNAKE_CASE     						= grid[i][j] + min(dp[i - 1][j]		,						dp[i][j - 1]	)

			return dp[-1][-1]


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