"""simple docstring"""





import os


def      lowerCamelCase_()->    List[Any]:
							_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    os.path.dirname(os.path.realpath(_lowercase  )  )
							_SCREAMING_SNAKE_CASE		:						Tuple			  =    os.path.join(_lowercase     ,	"""triangle.txt"""  )

							with open(_lowercase  ) as f:
														_SCREAMING_SNAKE_CASE		:						Dict			  =    f.readlines()

							_SCREAMING_SNAKE_CASE		:						Tuple			  =    []
							for line in triangle:
														_SCREAMING_SNAKE_CASE		:						List[Any]			  =    []
														for number in line.strip().split(""" """  ):
																					numbers_from_line.append(int(_lowercase  )  )
														a.append(_lowercase  )

							for i in range(1     ,	len(_lowercase  )  ):
														for j in range(len(a[i]  )  ):
																					_SCREAMING_SNAKE_CASE		:						str			  =    a[i - 1][j] if j != len(a[i - 1]  ) else 0
																					_SCREAMING_SNAKE_CASE		:						Optional[int]			  =    a[i - 1][j - 1] if j > 0 else 0
																					a[i][j] += max(_lowercase     ,	_lowercase  )
							return max(a[-1]  )


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



"""simple docstring"""





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


lowerCAmelCase_     =	{'''configuration_unispeech''': ['''UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''UniSpeechConfig''']}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			lowerCAmelCase_     =	[
			    '''UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''UniSpeechForCTC''',
			    '''UniSpeechForPreTraining''',
			    '''UniSpeechForSequenceClassification''',
			    '''UniSpeechModel''',
			    '''UniSpeechPreTrainedModel''',
			]

if TYPE_CHECKING:
			from .configuration_unispeech import UNISPEECH_PRETRAINED_CONFIG_ARCHIVE_MAP, UniSpeechConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_unispeech import (
						    UNISPEECH_PRETRAINED_MODEL_ARCHIVE_LIST,
						    UniSpeechForCTC,
						    UniSpeechForPreTraining,
						    UniSpeechForSequenceClassification,
						    UniSpeechModel,
						    UniSpeechPreTrainedModel,
						)

else:
			import sys

			lowerCAmelCase_     =	_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)


