



'''simple docstring'''





import os





def 		__snake_case(							)						->					Any:
      snake_case__    :       Union[str, Any]       		= os.path.dirname(os.path.realpath(_lowerCAmelCase						)						)
      snake_case__    :       str       		= os.path.join(_lowerCAmelCase	,  """triangle.txt"""						)

      with open(_lowerCAmelCase						) as f:
            snake_case__    :       Tuple       		= f.readlines()

      snake_case__    :       Any       		= []
      for line in triangle:
            snake_case__    :       Dict       		= []
            for number in line.strip().split(""" """						):
                  numbers_from_line.append(int(_lowerCAmelCase						)						)
            a.append(_lowerCAmelCase						)

      for i in range(1	,  len(_lowerCAmelCase						)						):
            for j in range(len(a[i]						)						):
                  snake_case__    :       List[Any]       		= a[i - 1][j] if j != len(a[i - 1]						) else 0
                  snake_case__    :       Optional[Any]       		= a[i - 1][j - 1] if j > 0 else 0
                  a[i][j] += max(_lowerCAmelCase	,  _lowerCAmelCase						)
      return max(a[-1]						)


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





'''simple docstring'''





# flake8: noqa
# Lint as: python3
__a  			=						[
    "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
