

"""simple docstring"""




import os



def 				snake_case_()							->     Optional[int]:



  """simple docstring"""






  _snake_case						=							os.path.dirname(os.path.realpath(_UpperCamelCase					)					)
  _snake_case						=							os.path.join(_UpperCamelCase			,	'''triangle.txt'''					)

  with open(_UpperCamelCase					) as f:
    _snake_case						=							f.readlines()

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

  for i in range(1			,	len(_UpperCamelCase					)					):
    for j in range(len(a[i]					)					):
      _snake_case						=							a[i - 1][j] if j != len(a[i - 1]					) else 0
      _snake_case						=							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					)							->     str:



  """simple docstring"""






  if a < 0 or b < 0:
    raise ValueError('''the value of both inputs must be positive'''					)
  _snake_case						=							str(bin(_UpperCamelCase					)					)[2:]  # remove the leading "0b"
  _snake_case						=							str(bin(_UpperCamelCase					)					)[2:]
  _snake_case						=							max(len(_UpperCamelCase					)			,	len(_UpperCamelCase					)					)
  return "0b" + "".join(
      str(int('''1''' in (char_a, char_b)					)					)
      for char_a, char_b in zip(a_binary.zfill(_UpperCamelCase					)			,	b_binary.zfill(_UpperCamelCase					)					)					)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

