




import os





def 		__A		(	)      ->       List[str]:
	a										=							os.path.dirname(os.path.realpath(__lowerCamelCase    )    )
	a										=							os.path.join(__lowerCamelCase							,			"""triangle.txt"""    )

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

	a										=							[]
	for line in triangle:
		a										=							[]
		for number in line.strip().split(""" """    ):
			numbers_from_line.append(int(__lowerCamelCase    )    )
		a.append(__lowerCamelCase    )

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


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







def 		__A		(	__lowerCamelCase    )      ->       int:
	a										=							0
	while num > 0:
		digit_sum += num % 10
		num //= 10
	return digit_sum





def 		__A		(	__lowerCamelCase = 100    )      ->       int:
	a										=							1
	a										=							2

	for i in range(2							,			max_n + 1    ):
		a										=							pre_numerator
		a										=							2 * i // 3 if i % 3 == 0 else 1
		a										=							cur_numerator
		a										=							e_cont * pre_numerator + temp

	return sum_digits(__lowerCamelCase    )


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

