

"""simple docstring"""


import os






def    a__   (   __SCREAMING_SNAKE_CASE = "matrix.txt"			)     ->     int:
		with open(os.path.join(os.path.dirname(__SCREAMING_SNAKE_CASE			) ,			__SCREAMING_SNAKE_CASE			)			) as in_file:
				__lowerCAmelCase:	Union[str, Any]   				=      in_file.read()

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

		__lowerCAmelCase:	Dict   				=      [[0 for i in range(__SCREAMING_SNAKE_CASE			)] for j in range(__SCREAMING_SNAKE_CASE			)]
		__lowerCAmelCase:	Optional[Any]   				=      grid[0][0]
		for i in range(1 ,			__SCREAMING_SNAKE_CASE			):
				__lowerCAmelCase:	Dict   				=      grid[0][i] + dp[0][i - 1]
		for i in range(1 ,			__SCREAMING_SNAKE_CASE			):
				__lowerCAmelCase:	List[str]   				=      grid[i][0] + dp[i - 1][0]

		for i in range(1 ,			__SCREAMING_SNAKE_CASE			):
				for j in range(1 ,			__SCREAMING_SNAKE_CASE			):
						__lowerCAmelCase:	Tuple   				=      grid[i][j] + min(dp[i - 1][j] ,			dp[i][j - 1]			)

		return dp[-1][-1]


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





"""simple docstring"""


import numpy as np






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     np.array:
		return (2 / (1 + np.exp(-2 * vector			))) - 1


if __name__ == "__main__":
			import doctest

			doctest.testmod()


