import os




def       _snake_case	(   lowerCAmelCase							:   str = "matrix.txt"	):
		"""simple docstring"""







		with open(os.path.join(os.path.dirname(lowerCAmelCase	)   , lowerCAmelCase	)	) as in_file:
				SCREAMING_SNAKE_CASE_  :		Dict				      =    in_file.read()

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

		SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    [[0 for i in range(lowerCAmelCase	)] for j in range(lowerCAmelCase	)]
		SCREAMING_SNAKE_CASE_  :		Dict				      =    grid[0][0]
		for i in range(1   , lowerCAmelCase	):
				SCREAMING_SNAKE_CASE_  :		Union[str, Any]				      =    grid[0][i] + dp[0][i - 1]
		for i in range(1   , lowerCAmelCase	):
				SCREAMING_SNAKE_CASE_  :		int				      =    grid[i][0] + dp[i - 1][0]

		for i in range(1   , lowerCAmelCase	):
				for j in range(1   , lowerCAmelCase	):
						SCREAMING_SNAKE_CASE_  :		Optional[int]				      =    grid[i][j] + min(dp[i - 1][j]   , dp[i][j - 1]	)

		return dp[-1][-1]


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

def       _snake_case	(   lowerCAmelCase							:   int	):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		Tuple				      =    int(lowerCAmelCase	)
		if decimal in (0, 1):  # Exit cases for the recursion
				return str(lowerCAmelCase	)
		SCREAMING_SNAKE_CASE_      ,    SCREAMING_SNAKE_CASE_  :		Dict				      =    divmod(lowerCAmelCase   , 2	)
		return binary_recursive(lowerCAmelCase	) + str(lowerCAmelCase	)




def       _snake_case	(   lowerCAmelCase							:   str	):
		"""simple docstring"""







		SCREAMING_SNAKE_CASE_  :		str				      =    str(lowerCAmelCase	).strip()
		if not number:
				raise ValueError("No input value was provided"	)
		SCREAMING_SNAKE_CASE_  :		List[str]				      =    "-" if number.startswith("-"	) else ""
		SCREAMING_SNAKE_CASE_  :		Optional[Any]				      =    number.lstrip("-"	)
		if not number.isnumeric():
				raise ValueError("Input value is not an integer"	)
		return f'{negative}0b{binary_recursive(int(lowerCAmelCase	)	)}'


if __name__ == "__main__":
		from doctest import testmod

		testmod()
