






"""simple docstring"""



import os

def 			_snake_case    (					)    ->     Dict:






							"""simple docstring"""




							lowerCamelCase_	:							int									=os.path.dirname(os.path.realpath(_UpperCAmelCase  )  )
							lowerCamelCase_	:							Optional[int]									=os.path.join(_UpperCAmelCase    ,						"triangle.txt"  )

							with open(_UpperCAmelCase  ) as f:
														lowerCamelCase_	:							Optional[Any]									=f.readlines()

							lowerCamelCase_	:							str									=[]
							for line in triangle:
														lowerCamelCase_	:							Union[str, Any]									=[]
														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]  )  ):
																					lowerCamelCase_	:							Any									=a[i - 1][j] if j != len(a[i - 1]  ) else 0
																					lowerCamelCase_	:							Dict									=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 typing import TYPE_CHECKING

from ...utils import _LazyModule


A__	:    Tuple			 = {'tokenization_byt5': ['ByT5Tokenizer']}


if TYPE_CHECKING:
						from .tokenization_byta import ByTaTokenizer
else:
						import sys

						A__	:    Dict			 = _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)



