



"""simple docstring"""

import os







def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  List[str] = "matrix.txt"			):



					"""simple docstring"""





					with open(os.path.join(os.path.dirname(__UpperCamelCase			)				,    __UpperCamelCase			)			) as in_file:
										snake_case_					:		str 					=					in_file.read()

					snake_case_					:		Optional[Any] 					=					[[int(__UpperCamelCase			) for cell in row.split(""","""			)] for row in data.strip().splitlines()]
					snake_case_					:		str 					=					[[0 for cell in row] for row in grid]
					snake_case_					:		Union[str, Any] 					=					len(grid[0]			)

					snake_case_					:		str 					=					[[0 for i in range(__UpperCamelCase			)] for j in range(__UpperCamelCase			)]
					snake_case_					:		Tuple 					=					grid[0][0]
					for i in range(1				,    __UpperCamelCase			):
										snake_case_					:		int 					=					grid[0][i] + dp[0][i - 1]
					for i in range(1				,    __UpperCamelCase			):
										snake_case_					:		List[str] 					=					grid[i][0] + dp[i - 1][0]

					for i in range(1				,    __UpperCamelCase			):
										for j in range(1				,    __UpperCamelCase			):
															snake_case_					:		Any 					=					grid[i][j] + min(dp[i - 1][j]				,    dp[i][j - 1]			)

					return dp[-1][-1]


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









"""simple docstring"""

def 							SCREAMING_SNAKE_CASE__      (		SCREAMING_SNAKE_CASE__ :  int				,    SCREAMING_SNAKE_CASE__ :  int			):



					"""simple docstring"""





					return numa ^ numa < 0


if __name__ == "__main__":
			import doctest

			doctest.testmod()




