





import re
import subprocess
import sys


__lowerCamelCase	:					str			  =					subprocess.check_output("""git merge-base main HEAD""".split()).decode("""utf-8""")
__lowerCamelCase	:					Union[str, Any]			  =					subprocess.check_output(f"""git diff --name-only {fork_point_sha}""".split()).decode("""utf-8""").split()

__lowerCamelCase	:					Dict			  =					'''|'''.join(sys.argv[1:])
__lowerCamelCase	:					int			  =					re.compile(rf"""^({joined_dirs}).*?\.py$""")

__lowerCamelCase	:					List[Any]			  =					[x for x in modified_files if regex.match(x)]
print(""" """.join(relevant_modified_files), end="""""")







import os



def 		A_    (					)						->			int:
 UpperCamelCase     : List[str]	     =       os.path.dirname(os.path.realpath(_lowerCAmelCase					)					)
 UpperCamelCase     : Any	     =       os.path.join(_lowerCAmelCase							,       "triangle.txt"					)

 with open(_lowerCAmelCase					) as f:
  UpperCamelCase     : Optional[Any]	     =       f.readlines()

 UpperCamelCase     : Tuple	     =       []
 for line in triangle:
  UpperCamelCase     : List[str]	     =       []
  for number in line.strip().split(" "					):
   numbers_from_line.append(int(_lowerCAmelCase					)					)
  a.append(_lowerCAmelCase					)

 for i in range(1							,       len(_lowerCAmelCase					)					):
  for j in range(len(a[i]					)					):
   UpperCamelCase     : List[Any]	     =       a[i - 1][j] if j != len(a[i - 1]					) else 0
   UpperCamelCase     : Dict	     =       a[i - 1][j - 1] if j > 0 else 0
   a[i][j] += max(_lowerCAmelCase							,       _lowerCAmelCase					)
 return max(a[-1]					)


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