code: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  
  import os
  def   _A (	):
  
  
  
  
  
    """simple docstring"""
  
  
  
    a__			:      Dict            =os.path.dirname(os.path.realpath(SCREAMING_SNAKE_CASE		)		)
    a__			:      str            =os.path.join(SCREAMING_SNAKE_CASE , "triangle.txt"		)
  
    with open(SCREAMING_SNAKE_CASE		) as f:
      a__			:      Optional[Any]            =f.readlines()
  
    a__			:      List[str]            =[[int(SCREAMING_SNAKE_CASE		) for y in x.rstrip("\r\n"		).split(" "		)] for x in triangle]
  
    for i in range(1 , len(SCREAMING_SNAKE_CASE		)		):
      for j in range(len(a[i]		)		):
        a__			:      str            =a[i - 1][j] if j != len(a[i - 1]		) else 0
        a__			:      Any            =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())
  
  
  
  
  
  
  
style_context: 
  
  
  
  
  
  def   _A (	SCREAMING_SNAKE_CASE  :     int		):
  
  
  
  
  
    """simple docstring"""
  
  
  
    if not isinstance(SCREAMING_SNAKE_CASE , SCREAMING_SNAKE_CASE		) or number < 0:
      raise ValueError("Input must be a non-negative integer"		)
  
    a__			:      List[str]            =number & ~(number - 1)
    a__			:      Optional[int]            =0
    while intermediate:
      intermediate >>= 1
      index += 1
    return index - 1
  
  
  if __name__ == "__main__":
       import doctest
  
       doctest.testmod(verbose=True)
  
  
  
  
  
  
  