





import os

def      UpperCAmelCase_    (    _UpperCAmelCase							:Optional[int] = "matrix.txt"				)	->				Union[str, Any]:
     '''simple docstring'''


     with open(os.path.join(os.path.dirname(_A				)  ,						_A				)				) as in_file:
          A_          =       in_file.read()

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

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

     for i in range(1  ,						_A				):
          for j in range(1  ,						_A				):
               A_          =       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       lowercase					(_A       ):







       """simple docstring"""







       if len(_A       ) <= 1:
              return [tuple(_A       )]

       _lowerCAmelCase     :				List[str]       =							[]

       def generate(_A ,    _A       ):
              _lowerCAmelCase     :				Any       =							[0] * n
              res.append(tuple(_A       )       )

              _lowerCAmelCase     :				Any       =							0
              while i < n:
                     if c[i] < i:
                            if i % 2 == 0:
                                   _lowerCAmelCase      ,  _lowerCAmelCase     :				Tuple       =							arr[i], arr[0]
                            else:
                                   _lowerCAmelCase      ,  _lowerCAmelCase     :				List[str]       =							arr[i], arr[c[i]]
                            res.append(tuple(_A       )       )
                            c[i] += 1
                            _lowerCAmelCase     :				Optional[int]       =							0
                     else:
                            _lowerCAmelCase     :				Any       =							0
                            i += 1

       generate(len(_A       ) ,    _A       )
       return res


if __name__ == "__main__":
       lowerCAmelCase     :  int											=    input("""Enter numbers separated by a comma:\n""").strip()
       lowerCAmelCase     :  Optional[int]											=    [int(item) for item in user_input.split(""",""")]
       print(heaps(arr))

