






import os
def 							UpperCAmelCase   ( ):


    '''simple docstring'''



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

    with open(_lowercase   ) as in_file:
        _lowercase     			=						[[int(_lowercase   ) for i in line.split()] for line in in_file]

    while len(_lowercase   ) != 1:
        _lowercase     			=						triangle.pop()
        _lowercase     			=						triangle[-1]
        for j in range(len(_lowercase   ) - 1   ):
            curr_row[j] += max(last_row[j],   last_row[j + 1]   )
    return triangle[0][0]


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








import json

import requests

from .fetch_github_info import AUTHENTICATED_USER_ENDPOINT, fetch_github_info
def 							UpperCAmelCase   ( _lowercase   ):


    '''simple docstring'''



    class        snake_case_				:







       """simple docstring"""



       def __init__(     self:						Tuple ,							snake_case__:						Optional[int]						)	->		None:


           """simple docstring"""



           assert isinstance(snake_case__ ,							(bytes, str)						)
           _lowercase     			=						content

       def       SCREAMING_SNAKE_CASE__					(     self:						Tuple						)	->		str:


           """simple docstring"""



           return json.loads(self.content						)

    def mock_response(*_lowercase,   **_lowercase   ):
        assert args[0] == AUTHENTICATED_USER_ENDPOINT
        assert "Authorization" in kwargs["headers"]
        assert kwargs["headers"]["Authorization"].startswith('token '   )
        assert "Accept" in kwargs["headers"]
        return FakeResponse(b'{"login":"test","id":1}'   )

    monkeypatch.setattr(_lowercase,   'get',   _lowercase   )
    _lowercase     			=						fetch_github_info('token'   )
    assert result["login"] == "test"
    assert result["id"] == 1
