
import os

def 				SCREAMING_SNAKE_CASE     (      ) ->       Optional[Any]:

				"""simple docstring"""







				A__  :	List[Any]         =							os.path.dirname(os.path.realpath(__UpperCamelCase       )       )
				A__  :	int         =							os.path.join(__UpperCamelCase							,						'''triangle.txt'''       )

				with open(__UpperCamelCase       ) as f:
								A__  :	Dict         =							f.readlines()

				A__  :	Optional[Any]         =							[]
				for line in triangle:
								A__  :	Optional[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]       )       ):
												A__  :	Optional[Any]         =							a[i - 1][j] if j != len(a[i - 1]       ) else 0
												A__  :	List[Any]         =							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())

from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
					if not (is_transformers_available() and is_torch_available()):
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					from ...utils.dummy_torch_and_transformers_objects import KandinskyPipeline, KandinskyPriorPipeline
else:
					from .pipeline_kandinsky import KandinskyPipeline
					from .pipeline_kandinsky_imgaimg import KandinskyImgaImgPipeline
					from .pipeline_kandinsky_inpaint import KandinskyInpaintPipeline
					from .pipeline_kandinsky_prior import KandinskyPriorPipeline, KandinskyPriorPipelineOutput
					from .text_encoder import MultilingualCLIP