

import os


def     __SCREAMING_SNAKE_CASE   (SCREAMING_SNAKE_CASE__ = "input.txt"			):

						with open(os.path.join(os.path.dirname(SCREAMING_SNAKE_CASE__			)    ,						SCREAMING_SNAKE_CASE__			)			) as input_file:
												snake_case_  =      [
												    [int(SCREAMING_SNAKE_CASE__			) for element in line.split(''','''			)]
												    for line in input_file.readlines()
												]

						snake_case_  =      len(SCREAMING_SNAKE_CASE__			)
						snake_case_  =      len(matrix[0]			)

						snake_case_  =      [[-1 for _ in range(SCREAMING_SNAKE_CASE__			)] for _ in range(SCREAMING_SNAKE_CASE__			)]
						for i in range(SCREAMING_SNAKE_CASE__			):
												snake_case_  =      matrix[i][0]

						for j in range(1    ,						SCREAMING_SNAKE_CASE__			):
												for i in range(SCREAMING_SNAKE_CASE__			):
																		snake_case_  =      minimal_path_sums[i][j - 1] + matrix[i][j]

												for i in range(1    ,						SCREAMING_SNAKE_CASE__			):
																		snake_case_  =      min(
																		    minimal_path_sums[i][j]    ,						minimal_path_sums[i - 1][j] + matrix[i][j]			)

												for i in range(rows - 2    ,						-1    ,						-1			):
																		snake_case_  =      min(
																		    minimal_path_sums[i][j]    ,						minimal_path_sums[i + 1][j] + matrix[i][j]			)

						return min(minimal_path_sums_row[-1] for minimal_path_sums_row in minimal_path_sums			)


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


from math import factorial, radians







def 							_lowerCamelCase   (			SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE = 18		,				SCREAMING_SNAKE_CASE = 10   ):
      '''simple docstring'''







      A_							       =		angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

      # Converting from degrees to radians
      A_							       =		radians(SCREAMING_SNAKE_CASE   )

      A_							       =		angle_in_radians
      A_							       =		3
      A_							       =		-1

      for _ in range(SCREAMING_SNAKE_CASE   ):
            result += (b * (angle_in_radians**a)) / factorial(SCREAMING_SNAKE_CASE   )

            A_							       =		-b  # One positive term and the next will be negative and so on...
            a += 2  # Increased by 2 for every term.

      return round(SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE   )


if __name__ == "__main__":
      __import__("""doctest""").testmod()





