






'''simple docstring'''

import os



def 							snake_case					(     )       ->				Any:





      """simple docstring"""

      UpperCamelCase_				:   Union[str, Any]					    =							os.path.dirname(os.path.realpath(a_	)	)
      UpperCamelCase_				:   Tuple					    =							os.path.join(a_    ,   """triangle.txt"""	)

      with open(a_	) as f:
            UpperCamelCase_				:   Any					    =							f.readlines()

      UpperCamelCase_				:   List[Any]					    =							[]
      for line in triangle:
            UpperCamelCase_				:   Optional[int]					    =							[]
            for number in line.strip().split(""" """	):
                  numbers_from_line.append(int(a_	)	)
            a.append(a_	)

      for i in range(1    ,   len(a_	)	):
            for j in range(len(a[i]	)	):
                  UpperCamelCase_				:   Union[str, Any]					    =							a[i - 1][j] if j != len(a[i - 1]	) else 0
                  UpperCamelCase_				:   List[Any]					    =							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'''

# flake8: noqa
# Lint as: python3
UpperCamelCase							=[
    "VerificationMode",
    "Version",
    "disable_progress_bar",
    "enable_progress_bar",
    "is_progress_bar_enabled",
    "experimental",
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental






