'''simple docstring'''

import os



def lowerCamelCase__						(       )     ->   List[str]:
 UpperCAmelCase_				       =					os.path.dirname(os.path.realpath(_UpperCAmelCase       )       )
 UpperCAmelCase_				       =					os.path.join(_UpperCAmelCase       ,			"triangle.txt"       )

 with open(_UpperCAmelCase       ) as f:
  UpperCAmelCase_				       =					f.readlines()

 UpperCAmelCase_				       =					[[int(_UpperCAmelCase       ) for y in x.rstrip("\r\n"       ).split(" "       )] for x in triangle]

 for i in range(1       ,			len(_UpperCAmelCase       )       ):
  for j in range(len(a[i]       )       ):
   UpperCAmelCase_				       =					a[i - 1][j] if j != len(a[i - 1]       ) else 0
   UpperCAmelCase_				       =					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 							lowercase_    (     metaclass=_A						):
    a_             =   ["""torch""", """librosa"""]







    def __init__(	self       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       int:





     """simple docstring"""

     requires_backends(self       ,     ["torch", "librosa"]				)







    @classmethod
    def   lowerCamelCase_    (	cls       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       Union[str, Any]:





     """simple docstring"""

     requires_backends(cls       ,     ["torch", "librosa"]				)







    @classmethod
    def   lowerCamelCase_    (	cls       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       Dict:





     """simple docstring"""

     requires_backends(cls       ,     ["torch", "librosa"]				)


class 							lowercase_    (     metaclass=_A						):
    a_             =   ["""torch""", """librosa"""]







    def __init__(	self       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       str:





     """simple docstring"""

     requires_backends(self       ,     ["torch", "librosa"]				)







    @classmethod
    def   lowerCamelCase_    (	cls       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       Union[str, Any]:





     """simple docstring"""

     requires_backends(cls       ,     ["torch", "librosa"]				)







    @classmethod
    def   lowerCamelCase_    (	cls       ,     *UpperCamelCase__       ,     **UpperCamelCase__				)				->       int:





     """simple docstring"""

     requires_backends(cls       ,     ["torch", "librosa"]				)
