
'''simple docstring'''







import os



def       _a		(						):
						_SCREAMING_SNAKE_CASE					=			os.path.dirname(os.path.realpath(_SCREAMING_SNAKE_CASE	)	)
						_SCREAMING_SNAKE_CASE					=			os.path.join(_SCREAMING_SNAKE_CASE						,      "triangle.txt"	)

						with open(_SCREAMING_SNAKE_CASE	) as f:
												_SCREAMING_SNAKE_CASE					=			f.readlines()

						_SCREAMING_SNAKE_CASE					=			[[int(_SCREAMING_SNAKE_CASE	) for y in x.rstrip("\r\n"	).split(" "	)] for x in triangle]

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


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

'''simple docstring'''







from ..utils import DummyObject, requires_backends


class       lowerCAmelCase			(					metaclass=__UpperCAmelCase      ):
		a				:       Any							=       ["""torch""", """transformers""", """invisible_watermark"""]




		def __init__(					self       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(self       ,    ["torch", "transformers", "invisible_watermark"]   )




		@classmethod
		def      lowercase							(					cls       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(cls       ,    ["torch", "transformers", "invisible_watermark"]   )




		@classmethod
		def      lowercase							(					cls       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(cls       ,    ["torch", "transformers", "invisible_watermark"]   )


class       lowerCAmelCase			(					metaclass=__UpperCAmelCase      ):
		a				:       Optional[Any]							=       ["""torch""", """transformers""", """invisible_watermark"""]




		def __init__(					self       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(self       ,    ["torch", "transformers", "invisible_watermark"]   )




		@classmethod
		def      lowercase							(					cls       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(cls       ,    ["torch", "transformers", "invisible_watermark"]   )




		@classmethod
		def      lowercase							(					cls       ,    *UpperCamelCase       ,    **UpperCamelCase   ):
								requires_backends(cls       ,    ["torch", "transformers", "invisible_watermark"]   )