


import os

def       _a	(					):







 """simple docstring"""



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

 with open(SCREAMING_SNAKE_CASE  ) as in_file:
  UpperCamelCase__       :     Tuple 							= [[int(SCREAMING_SNAKE_CASE  ) for i in line.split()] for line in in_file]

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


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






import numpy as np

def       _a	(					SCREAMING_SNAKE_CASE						:					Tuple  ):







 """simple docstring"""



 UpperCamelCase__       :     str 							= np.exp(SCREAMING_SNAKE_CASE  )

 # Add up the all the exponentials
 UpperCamelCase__       :     Optional[int] 							= np.sum(SCREAMING_SNAKE_CASE  )

 # Divide every exponent by the sum of all exponents
 UpperCamelCase__       :     Optional[Any] 							= exponent_vector / sum_of_exponents

 return softmax_vector


if __name__ == "__main__":
       print(softmax((0,)))


