code: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  import os
  
  
  
  
  def 	__lowerCamelCase (  )      ->Tuple:
  	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__  					=      [[int(UpperCAmelCase_       ) for y in x.rstrip('\r\n'       ).split(' '       )] for x in triangle]
  
  	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())
  
  
  
  
style_context: 
  
  
  
  
  
  '''simple docstring'''
  
  
  
  
  def 	__lowerCamelCase (  UpperCAmelCase_       )      ->str:
  	snake_case__  					=      len(UpperCAmelCase_       )
  	for i in range(length - 1       ):
  		snake_case__  					=      False
  		for j in range(length - 1 - i       ):
  			if collection[j] > collection[j + 1]:
  				snake_case__  					=      True
  				snake_case__					,     snake_case__  					=      collection[j + 1], collection[j]
  		if not swapped:
  			break  # Stop iteration if the collection is sorted.
  	return collection
  
  
  if __name__ == "__main__":
  			import doctest
  			import time
  
  			doctest.testmod()
  
  			a__				: Dict									=    input('''Enter numbers separated by a comma:''').strip()
  			a__				: Dict									=    [int(item) for item in user_input.split(''',''')]
  			a__				: Tuple									=    time.process_time()
  			print(*bubble_sort(unsorted), sep=''',''')
  			print(f"""Processing time: {(time.process_time() - start)%1e9 + 7}""")
  
  
  
  