

import os

def        lowerCamelCase__       (    _a = "input.txt"):

	with open(os.path.join(os.path.dirname(__UpperCAmelCase)							,	__UpperCAmelCase)) as input_file:
		SCREAMING_SNAKE_CASE      :					Optional[int]    =				[
		    [int(__UpperCAmelCase) for element in line.split(",")]
		    for line in input_file.readlines()
		]

	SCREAMING_SNAKE_CASE      :					Optional[Any]    =				len(__UpperCAmelCase)
	SCREAMING_SNAKE_CASE      :					Union[str, Any]    =				len(matrix[0])

	SCREAMING_SNAKE_CASE      :					Union[str, Any]    =				[[-1 for _ in range(__UpperCAmelCase)] for _ in range(__UpperCAmelCase)]
	for i in range(__UpperCAmelCase):
		SCREAMING_SNAKE_CASE      :					Dict    =				matrix[i][0]

	for j in range(1							,	__UpperCAmelCase):
		for i in range(__UpperCAmelCase):
			SCREAMING_SNAKE_CASE      :					Union[str, Any]    =				minimal_path_sums[i][j - 1] + matrix[i][j]

		for i in range(1							,	__UpperCAmelCase):
			SCREAMING_SNAKE_CASE      :					Dict    =				min(
			    minimal_path_sums[i][j]							,	minimal_path_sums[i - 1][j] + matrix[i][j])

		for i in range(rows - 2							,	-1							,	-1):
			SCREAMING_SNAKE_CASE      :					Optional[int]    =				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() = }''')





import sys
import webbrowser

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

if __name__ == "__main__":
   print('Googling.....')
   lowerCamelCase__ :   List[Any]					=							'https://www.google.com/search?q=' + ' '.join(sys.argv[1:])
   lowerCamelCase__ :   List[Any]					=							requests.get(url, headers={'UserAgent': UserAgent().random})
   # res.raise_for_status()
   with open('project1a.html', 'wb') as out_file:  # only for knowing the class
      for data in res.iter_content(10_000):
         out_file.write(data)
   lowerCamelCase__ :   int					=							BeautifulSoup(res.text, 'html.parser')
   lowerCamelCase__ :   List[str]					=							list(soup.select('.eZt8xd'))[:5]

   print(len(links))
   for link in links:
      if link.text == "Maps":
         webbrowser.open(link.get('href'))
      else:
         webbrowser.open(f'''https://google.com{link.get('href')}''')