






import os

def      _lowerCamelCase	(						)      ->					List[Any]:
    _UpperCAmelCase				:      Optional[int]			  =				os.path.dirname(os.path.realpath(__A ) )
    _UpperCAmelCase				:      Dict			  =				os.path.join(__A		,		'''triangle.txt''' )

    with open(__A ) as f:
        _UpperCAmelCase				:      Tuple			  =				f.readlines()

    _UpperCAmelCase				:      int			  =				[]
    for line in triangle:
        _UpperCAmelCase				:      Optional[Any]			  =				[]
        for number in line.strip().split(''' ''' ):
            numbers_from_line.append(int(__A ) )
        a.append(__A )

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


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












from math import pow, sqrt

def      _lowerCamelCase	(						*__A    :							float )      ->					bool:
    _UpperCAmelCase				:      str			  =				len(__A ) > 0 and all(value > 0.0 for value in values )
    return result

def      _lowerCamelCase	(						__A    :							float		,		__A    :							float )      ->					float | ValueError:
    return (
        round(sqrt(molar_mass_a / molar_mass_a )		,		6 )
        if validate(__A		,		__A )
        else ValueError('''Input Error: Molar mass values must greater than 0.''' )
    )

def      _lowerCamelCase	(						__A    :							float		,		__A    :							float		,		__A    :							float )      ->					float | ValueError:
    return (
        round(effusion_rate * sqrt(molar_mass_a / molar_mass_a )		,		6 )
        if validate(__A		,		__A		,		__A )
        else ValueError(
            '''Input Error: Molar mass and effusion rate values must greater than 0.''' )
    )

def      _lowerCamelCase	(						__A    :							float		,		__A    :							float		,		__A    :							float )      ->					float | ValueError:
    return (
        round(effusion_rate / sqrt(molar_mass_a / molar_mass_a )		,		6 )
        if validate(__A		,		__A		,		__A )
        else ValueError(
            '''Input Error: Molar mass and effusion rate values must greater than 0.''' )
    )

def      _lowerCamelCase	(						__A    :							float		,		__A    :							float		,		__A    :							float )      ->					float | ValueError:
    return (
        round(molar_mass / pow(effusion_rate_a / effusion_rate_a		,		2 )		,		6 )
        if validate(__A		,		__A		,		__A )
        else ValueError(
            '''Input Error: Molar mass and effusion rate values must greater than 0.''' )
    )


def      _lowerCamelCase	(						__A    :							float		,		__A    :							float		,		__A    :							float )      ->					float | ValueError:
    return (
        round(pow(effusion_rate_a / effusion_rate_a		,		2 ) / molar_mass		,		6 )
        if validate(__A		,		__A		,		__A )
        else ValueError(
            '''Input Error: Molar mass and effusion rate values must greater than 0.''' )
    )




