





"""simple docstring"""





import os



def 					lowerCAmelCase_      (   ):


							'''simple docstring'''







							__lowerCamelCase   :   Union[str, Any]       =os.path.dirname(os.path.realpath(SCREAMING_SNAKE_CASE ) )
							__lowerCamelCase   :   Any       =os.path.join(SCREAMING_SNAKE_CASE     ,    '''triangle.txt''' )

							with open(SCREAMING_SNAKE_CASE ) as f:
														__lowerCamelCase   :   List[str]       =f.readlines()

							__lowerCamelCase   :   Optional[int]       =[]
							for line in triangle:
														__lowerCamelCase   :   List[str]       =[]
														for number in line.strip().split(''' ''' ):
																					numbers_from_line.append(int(SCREAMING_SNAKE_CASE ) )
														a.append(SCREAMING_SNAKE_CASE )

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


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











"""simple docstring"""





import numpy as np



def 					lowerCAmelCase_      (   SCREAMING_SNAKE_CASE							:				np.array ):


							'''simple docstring'''







							return 1 / (1 + np.exp(-vector ))


if __name__ == "__main__":
							import doctest

							doctest.testmod()




