
'''simple docstring'''

import os


def        UpperCAmelCase_ (  lowerCamelCase_ = "matrix.txt"			):







 """simple docstring"""


 with open(os.path.join(os.path.dirname(lowerCamelCase_			)      ,			lowerCamelCase_			)			) as in_file:
  lowerCAmelCase__     :   int     		=	in_file.read()

 lowerCAmelCase__     :   List[Any]     		=	[[int(lowerCamelCase_			) for cell in row.split(","			)] for row in data.strip().splitlines()]
 lowerCAmelCase__     :   Dict     		=	[[0 for cell in row] for row in grid]
 lowerCAmelCase__     :   Any     		=	len(grid[0]			)

 lowerCAmelCase__     :   Any     		=	[[0 for i in range(lowerCamelCase_			)] for j in range(lowerCamelCase_			)]
 lowerCAmelCase__     :   List[Any]     		=	grid[0][0]
 for i in range(1      ,			lowerCamelCase_			):
  lowerCAmelCase__     :   Union[str, Any]     		=	grid[0][i] + dp[0][i - 1]
 for i in range(1      ,			lowerCamelCase_			):
  lowerCAmelCase__     :   Dict     		=	grid[i][0] + dp[i - 1][0]

 for i in range(1      ,			lowerCamelCase_			):
  for j in range(1      ,			lowerCamelCase_			):
   lowerCAmelCase__     :   List[str]     		=	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        UpperCAmelCase_ (  lowerCamelCase_			):







 """simple docstring"""


 return number & 1 == 0


if __name__ == "__main__":
     import doctest

     doctest.testmod()





