



"""simple docstring"""

import os
def    __snake_case       (  )    ->					int:






				'''simple docstring'''
				SCREAMING_SNAKE_CASE	:       Dict 							=    os.path.dirname(os.path.realpath(__A    )    )
				SCREAMING_SNAKE_CASE	:       Union[str, Any] 							=    os.path.join(__A       ,		'triangle.txt'    )

				with open(__A    ) as in_file:
								SCREAMING_SNAKE_CASE	:       Dict 							=    [[int(__A    ) for i in line.split()] for line in in_file]

				while len(__A    ) != 1:
								SCREAMING_SNAKE_CASE	:       int 							=    triangle.pop()
								SCREAMING_SNAKE_CASE	:       Optional[int] 							=    triangle[-1]
								for j in range(len(__A    ) - 1    ):
												curr_row[j] += max(last_row[j]       ,		last_row[j + 1]    )
				return triangle[0][0]


if __name__ == "__main__":
							print(solution())






"""simple docstring"""

def    __snake_case       (  __A			:	int    )    ->					int:






				'''simple docstring'''
				if not isinstance(__A       ,		__A    ):
								raise ValueError('double_factorial() only accepts integral values'    )
				if num < 0:
								raise ValueError('double_factorial() not defined for negative values'    )
				SCREAMING_SNAKE_CASE	:       List[str] 							=    1
				for i in range(__A       ,		0       ,		-2    ):
								value *= i
				return value


if __name__ == "__main__":
							import doctest

							doctest.testmod()





