
"""simple docstring"""



def 			_UpperCamelCase						(    _A   )     ->	int:





    """simple docstring"""

    if not grid or not grid[0]:
        raise TypeError("""The grid does not contain the appropriate information"""   )

    for cell_n in range(1       ,   len(grid[0]   )   ):
        grid[0][cell_n] += grid[0][cell_n - 1]
    _UpperCAmelCase        = grid[0]

    for row_n in range(1       ,   len(_A   )   ):
        _UpperCAmelCase        = grid[row_n]
        _UpperCAmelCase        = fill_row(_A       ,   _A   )
        _UpperCAmelCase        = grid[row_n]

    return grid[-1][-1]


def 			_UpperCamelCase						(    _A       ,   _A   )     ->	list:





    """simple docstring"""

    current_row[0] += row_above[0]
    for cell_n in range(1       ,   len(_A   )   ):
        current_row[cell_n] += min(current_row[cell_n - 1]       ,   row_above[cell_n]   )

    return current_row


if __name__ == "__main__":
 import doctest

 doctest.testmod()

"""simple docstring"""



import os
from math import logaa


def 			_UpperCamelCase						(    _A = "base_exp.txt"   )     ->	int:





    """simple docstring"""

    _UpperCAmelCase        = 0
    _UpperCAmelCase        = 0
    for i, line in enumerate(open(os.path.join(os.path.dirname(_A   )       ,   _A   )   )   ):
        _UpperCAmelCase     ,_UpperCAmelCase        = list(map(_A       ,   line.split(""","""   )   )   )
        if x * logaa(_A   ) > largest:
            _UpperCAmelCase        = x * logaa(_A   )
            _UpperCAmelCase        = i + 1
    return result


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