


import os


def 		lowercase_  (     _UpperCamelCase = "matrix.txt"  ):


			'''simple docstring'''







			with open(os.path.join(os.path.dirname(_UpperCamelCase  )       ,			_UpperCamelCase  )  ) as in_file:
						__lowercase 					=   in_file.read()

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

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

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

			return dp[-1][-1]


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






from ..utils import DummyObject, requires_backends
class 	lowerCamelCase_       (				metaclass=lowerCAmelCase__				):



					'''simple docstring'''







					__UpperCAmelCase            =				["onnx"]






					def __init__(				self ,       *snake_case_ ,       **snake_case_						)   ->			List[Any]:







								'''simple docstring'''

								requires_backends(self ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			int:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)






					@classmethod
					def A      (				cls ,       *snake_case_ ,       **snake_case_						)   ->			List[str]:







								'''simple docstring'''

								requires_backends(cls ,       ['''onnx''']						)


