






'''simple docstring'''




import os







def       __UpperCAmelCase						(  lowerCamelCase_ = "input.txt")							->     int:

		with open(os.path.join(os.path.dirname(lowerCamelCase_)     ,      lowerCamelCase_)) as input_file:
				UpperCamelCase__				:					Tuple					=					[
				    [int(lowerCamelCase_) for element in line.split(',')]
				    for line in input_file.readlines()
				]

		UpperCamelCase__				:					Union[str, Any]					=					len(lowerCamelCase_)
		UpperCamelCase__				:					str					=					len(matrix[0])

		UpperCamelCase__				:					str					=					[[-1 for _ in range(lowerCamelCase_)] for _ in range(lowerCamelCase_)]
		for i in range(lowerCamelCase_):
				UpperCamelCase__				:					Dict					=					matrix[i][0]

		for j in range(1     ,      lowerCamelCase_):
				for i in range(lowerCamelCase_):
						UpperCamelCase__				:					List[Any]					=					minimal_path_sums[i][j - 1] + matrix[i][j]

				for i in range(1     ,      lowerCamelCase_):
						UpperCamelCase__				:					Optional[int]					=					min(
						    minimal_path_sums[i][j]     ,      minimal_path_sums[i - 1][j] + matrix[i][j])

				for i in range(rows - 2     ,      -1     ,      -1):
						UpperCamelCase__				:					List[Any]					=					min(
						    minimal_path_sums[i][j]     ,      minimal_path_sums[i + 1][j] + matrix[i][j])

		return min(minimal_path_sums_row[-1] for minimal_path_sums_row in minimal_path_sums)


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












'''simple docstring'''




import requests
from bsa import BeautifulSoup







def       __UpperCAmelCase						(  lowerCamelCase_ = "AAPL")							->     str:
		UpperCamelCase__				:					str					=					f'https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'
		UpperCamelCase__				:					Optional[Any]					=					BeautifulSoup(requests.get(lowerCamelCase_).text     ,      'html.parser')
		UpperCamelCase__				:					Union[str, Any]					=					'My(6px) Pos(r) smartphone_Mt(6px)'
		return soup.find('div'     ,      class_=class_).find('span').text


if __name__ == "__main__":
		for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
				print(f'''Current {symbol:<4} stock price is {stock_price(symbol):>8}''')




