




import os




def 					lowerCamelCase__       (						):





       '''simple docstring'''



       __lowerCamelCase   =						os.path.dirname(os.path.realpath(A__	)	)
       __lowerCamelCase   =						os.path.join(A__  ,			"""triangle.txt"""	)

       with open(A__	) as f:
              __lowerCamelCase   =						f.readlines()

       __lowerCamelCase   =						[]
       for line in triangle:
              __lowerCamelCase   =						[]
              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]	)	):
                     __lowerCamelCase   =						a[i - 1][j] if j != len(a[i - 1]	) else 0
                     __lowerCamelCase   =						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 dataclasses import dataclass, field
from typing import ClassVar, Dict

from ..features import Features, Value
from .base import TaskTemplate

@dataclass(frozen=_UpperCAmelCase					)
class 		lowercase					(					_UpperCAmelCase					):
      _SCREAMING_SNAKE_CASE					=      field(default='language-modeling'     ,  metadata={'include_in_asdict_even_if_is_default': True}					)

      _SCREAMING_SNAKE_CASE					=      Features({'text': Value('string'					)}					)
      _SCREAMING_SNAKE_CASE					=      Features({}					)
      _SCREAMING_SNAKE_CASE					=      "text"





      @property
      def     _snake_case			(       self )		->     Dict[str, str]:
            return {self.text_column: "text"}






