



def     __lowerCamelCase							(   __magic_name__						:	int    ):






							if not isinstance(__magic_name__  ,			__magic_name__    ):
														raise ValueError("double_factorial() only accepts integral values"    )
							if num < 0:
														raise ValueError("double_factorial() not defined for negative values"    )
							a__:							Any									=1
							for i in range(__magic_name__  ,			0  ,			-2    ):
														value *= i
							return value


if __name__ == "__main__":
		import doctest

		doctest.testmod()












import os



def _a							(      )      ->		int:







      '''simple docstring'''






      __A			  =							os.path.dirname(os.path.realpath(lowerCamelCase					)					)
      __A			  =							os.path.join(lowerCamelCase   ,							'''triangle.txt'''					)

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

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


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





