



import os

def      A_ (		):

				"""simple docstring"""
				a__			 =						os.path.dirname(os.path.realpath(__a						)						)
				a__			 =						os.path.join(__a	,						"""triangle.txt"""						)

				with open(__a						) as in_file:
								a__			 =						[[int(__a						) for i in line.split()] for line in in_file]

				while len(__a						) != 1:
								a__			 =						triangle.pop()
								a__			 =						triangle[-1]
								for j in range(len(__a						) - 1						):
												curr_row[j] += max(last_row[j]	,						last_row[j + 1]						)
				return triangle[0][0]


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






def      A_ (		__a       :			int = 1_000						):

				"""simple docstring"""
				return sum(i for i in range(__a						) if i % 3 == 0 or i % 5 == 0						)


if __name__ == "__main__":
	print(f"""{solution() = }""")

