
import os

def        lowerCamelCase_      (			):
						lowercase       :    Union[str, Any]											=  os.path.dirname(os.path.realpath(UpperCAmelCase_       )       )
						lowercase       :    Optional[Any]											=  os.path.join(UpperCAmelCase_							,			'''triangle.txt'''       )

						with open(UpperCAmelCase_       ) as in_file:
												lowercase       :    List[str]											=  [[int(UpperCAmelCase_       ) for i in line.split()] for line in in_file]

						while len(UpperCAmelCase_       ) != 1:
												lowercase       :    List[str]											=  triangle.pop()
												lowercase       :    Tuple											=  triangle[-1]
												for j in range(len(UpperCAmelCase_       ) - 1       ):
																		curr_row[j] += max(last_row[j]							,			last_row[j + 1]       )
						return triangle[0][0]


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




snake_case__  							=							"""
# Diffusers installation
! pip install diffusers transformers datasets accelerate
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/diffusers.git
"""

snake_case__  							=							[{"""type""": """code""", """content""": INSTALL_CONTENT}]


