





import os





def 				__lowerCAmelCase(       )							-> Union[str, Any]:




    """simple docstring"""




    with open(os.path.dirname(_SCREAMING_SNAKE_CASE				) + '/grid.txt'				) as f:
        _A     =							[]  # noqa: E741
        for _ in range(20				):
            l.append([int(_SCREAMING_SNAKE_CASE				) for x in f.readline().split()]				)

        _A     =							0

        # right
        for i in range(20				):
            for j in range(17				):
                _A     =							l[i][j] * l[i][j + 1] * l[i][j + 2] * l[i][j + 3]
                if temp > maximum:
                    _A     =							temp

        # down
        for i in range(17				):
            for j in range(20				):
                _A     =							l[i][j] * l[i + 1][j] * l[i + 2][j] * l[i + 3][j]
                if temp > maximum:
                    _A     =							temp

        # diagonal 1
        for i in range(17				):
            for j in range(17				):
                _A     =							l[i][j] * l[i + 1][j + 1] * l[i + 2][j + 2] * l[i + 3][j + 3]
                if temp > maximum:
                    _A     =							temp

        # diagonal 2
        for i in range(17				):
            for j in range(3							,     20				):
                _A     =							l[i][j] * l[i + 1][j - 1] * l[i + 2][j - 2] * l[i + 3][j - 3]
                if temp > maximum:
                    _A     =							temp
        return maximum


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






"""simple docstring"""


from .imports import is_rich_available


if is_rich_available():
	from rich.traceback import install

	install(show_locals=False)

else:
	raise ModuleNotFoundError('To use the rich extension, install rich with `pip install rich`')


