





import os





def lowerCAmelCase__()				->      Optional[int]:







	'''simple docstring'''







	lowerCamelCase__								=		os.path.dirname(os.path.realpath(_lowercase							)							)
	lowerCamelCase__								=		os.path.join(_lowercase       ,'''triangle.txt'''							)

	with open(_lowercase							) as f:
		lowerCamelCase__								=		f.readlines()

	lowerCamelCase__								=		[]
	for line in triangle:
		lowerCamelCase__								=		[]
		for number in line.strip().split(''' '''							):
			numbers_from_line.append(int(_lowercase							)							)
		a.append(_lowercase							)

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


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




def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float(moles / volume						) * nfactor						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((moles * 0.0821 * temperature) / (volume)						)						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((moles * 0.0821 * temperature) / (pressure)						)						)
def       A	(    _lowercase		,  _lowercase		,  _lowercase						):
						return round(float((pressure * volume) / (0.0821 * moles)						)						)


if __name__ == "__main__":
					import doctest

					doctest.testmod()





