




import os
def 		snake_case_   ():





							'''simple docstring'''


							_a     					=    os.path.dirname(os.path.realpath(UpperCamelCase				)				)
							_a     					=    os.path.join(UpperCamelCase			,						'''triangle.txt'''				)

							with open(UpperCamelCase				) as f:
														_a     					=    f.readlines()

							_a     					=    []
							for line in triangle:
														_a     					=    []
														for number in line.strip().split(''' '''				):
																					numbers_from_line.append(int(UpperCamelCase				)				)
														a.append(UpperCamelCase				)

							for i in range(1			,						len(UpperCamelCase				)				):
														for j in range(len(a[i]				)				):
																					_a     					=    a[i - 1][j] if j != len(a[i - 1]				) else 0
																					_a     					=    a[i - 1][j - 1] if j > 0 else 0
																					a[i][j] += max(UpperCamelCase			,						UpperCamelCase				)
							return max(a[-1]				)


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







'''simple docstring'''


from ..utils import DummyObject, requires_backends

class       A   (		metaclass=_a   ):
							lowercase_          =    ['torch', 'scipy']







							def __init__(  self	:  Tuple							,      *lowerCAmelCase_	:  str							,      **lowerCAmelCase_	:  Any )      ->							Tuple:


														"""simple docstring"""


														requires_backends(self							,      ['''torch''', '''scipy'''] )







							@classmethod
							def        __lowerCAmelCase      (  cls	:  Dict							,      *lowerCAmelCase_	:  Dict							,      **lowerCAmelCase_	:  str )      ->							Tuple:


														"""simple docstring"""


														requires_backends(cls							,      ['''torch''', '''scipy'''] )







							@classmethod
							def        __lowerCAmelCase      (  cls	:  Optional[int]							,      *lowerCAmelCase_	:  str							,      **lowerCAmelCase_	:  List[str] )      ->							str:


														"""simple docstring"""


														requires_backends(cls							,      ['''torch''', '''scipy'''] )

