



import os





def 		__snake_case						(    ):
					"""simple docstring"""






					lowercase						   =       os.path.dirname(os.path.realpath(_UpperCAmelCase				)				)
					lowercase						   =       os.path.join(_UpperCAmelCase       ,			'triangle.txt'				)

					with open(_UpperCAmelCase				) as f:
										lowercase						   =       f.readlines()

					lowercase						   =       [[int(_UpperCAmelCase				) for y in x.rstrip('\r\n'				).split(' '				)] for x in triangle]

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


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











def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					for index, item in enumerate(_UpperCAmelCase				):
										if item == target:
															return index
					return -1





def 		__snake_case						(    _UpperCAmelCase       ,			_UpperCAmelCase       ,			_UpperCAmelCase       ,			_UpperCAmelCase				):
					"""simple docstring"""






					if not (0 <= high < len(_UpperCAmelCase				) and 0 <= low < len(_UpperCAmelCase				)):
										raise Exception('Invalid upper or lower bound!'				)
					if high < low:
										return -1
					if sequence[low] == target:
										return low
					if sequence[high] == target:
										return high
					return rec_linear_search(_UpperCAmelCase       ,			low + 1       ,			high - 1       ,			_UpperCAmelCase				)


if __name__ == "__main__":
		__magic_name__       =     input('''Enter numbers separated by comma:\n''').strip()
		__magic_name__       =     [int(item.strip()) for item in user_input.split(''',''')]

		__magic_name__       =     int(input('''Enter a single number to be found in the list:\n''').strip())
		__magic_name__       =     linear_search(sequence, target)
		if result != -1:
				print(F"""linear_search({sequence}, {target}) = {result}""")
		else:
				print(F"""{target} was not found in {sequence}""")






