



"""simple docstring"""

import os




def __lowercase    (							):
    snake_case_				:  List[str]       =			os.path.dirname(os.path.realpath(_a					)					)
    snake_case_				:  Any       =			os.path.join(_a	,    '''triangle.txt'''					)

    with open(_a					) as f:
        snake_case_				:  Optional[Any]       =			f.readlines()

    snake_case_				:  Optional[int]       =			[]
    for line in triangle:
        snake_case_				:  Dict       =			[]
        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]					)					):
            snake_case_				:  List[str]       =			a[i - 1][j] if j != len(a[i - 1]					) else 0
            snake_case_				:  Optional[Any]       =			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())










"""simple docstring"""

from argparse import ArgumentParser

from datasets.commands.convert import ConvertCommand
from datasets.commands.dummy_data import DummyDataCommand
from datasets.commands.env import EnvironmentCommand
from datasets.commands.run_beam import RunBeamCommand
from datasets.commands.test import TestCommand
from datasets.utils.logging import set_verbosity_info




def __lowercase    (							_a					):
    return {key.lstrip('''-'''					): value for key, value in zip(unknown_args[::2]	,    unknown_args[1::2]					)}




def __lowercase    (							):
    snake_case_				:  List[str]       =			ArgumentParser(
        '''HuggingFace Datasets CLI tool'''	,    usage='''datasets-cli <command> [<args>]'''	,    allow_abbrev=_a					)
    snake_case_				:  List[Any]       =			parser.add_subparsers(help='''datasets-cli command helpers'''					)
    set_verbosity_info()

    # Register commands
    ConvertCommand.register_subcommand(_a					)
    EnvironmentCommand.register_subcommand(_a					)
    TestCommand.register_subcommand(_a					)
    RunBeamCommand.register_subcommand(_a					)
    DummyDataCommand.register_subcommand(_a					)

    # Parse args
    snake_case_,			snake_case_				:  Optional[Any]       =			parser.parse_known_args()
    if not hasattr(_a	,    '''func'''					):
        parser.print_help()
        exit(1					)
    snake_case_				:  Optional[int]       =			parse_unknown_args(_a					)

    # Run
    snake_case_				:  Optional[int]       =			args.func(_a	,    **_a					)
    service.run()


if __name__ == "__main__":
     main()





