



'''simple docstring'''





import os



def     UpperCAmelCase     (    )   ->       List[Any]:



   """simple docstring"""






   A_  :		Dict						=					os.path.dirname(os.path.realpath(a_		)		)
   A_  :		List[Any]						=					os.path.join(a_      ,		"""triangle.txt"""		)

   with open(a_		) as f:
      A_  :		str						=					f.readlines()

   A_  :		Union[str, Any]						=					[[int(a_		) for y in x.rstrip("""\r\n"""		).split(""" """		)] for x in triangle]

   for i in range(1      ,		len(a_		)		):
      for j in range(len(a[i]		)		):
         A_  :		Union[str, Any]						=					a[i - 1][j] if j != len(a[i - 1]		) else 0
         A_  :		Tuple						=					a[i - 1][j - 1] if j > 0 else 0
         a[i][j] += max(a_      ,		a_		)
   return max(a[-1]		)


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





'''simple docstring'''





from ..utils import DummyObject, requires_backends


class 							_lowerCAmelCase	(  metaclass=__A							):


 """simple docstring"""

 lowerCamelCase									=     ['''torch''', '''librosa''']







 def __init__(      self					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    str:
    requires_backends(self					,    ["""torch""", """librosa"""]  )







 @classmethod
 def       UpperCAmelCase_       (      cls					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    Dict:
    requires_backends(cls					,    ["""torch""", """librosa"""]  )







 @classmethod
 def       UpperCAmelCase_       (      cls					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    Optional[int]:
    requires_backends(cls					,    ["""torch""", """librosa"""]  )


class 							_lowerCAmelCase	(  metaclass=__A							):


 """simple docstring"""

 lowerCamelCase									=     ['''torch''', '''librosa''']







 def __init__(      self					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    Dict:
    requires_backends(self					,    ["""torch""", """librosa"""]  )







 @classmethod
 def       UpperCAmelCase_       (      cls					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    str:
    requires_backends(cls					,    ["""torch""", """librosa"""]  )







 @classmethod
 def       UpperCAmelCase_       (      cls					,    *_lowerCamelCase					,    **_lowerCamelCase  )    ->    Dict:
    requires_backends(cls					,    ["""torch""", """librosa"""]  )
