



import os

def    lowerCamelCase_() ->       Optional[Any]:
      with open(os.path.dirname(lowerCamelCase_    ) + "/grid.txt"    ) as f:
            UpperCAmelCase         =     []  # noqa: E741
            for _ in range(20    ):
                  l.append([int(lowerCamelCase_    ) for x in f.readline().split()]    )

            UpperCAmelCase         =     0

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

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

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

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


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








from argparse import ArgumentParser

from .env import EnvironmentCommand

def    lowerCamelCase_() ->       Any:
						UpperCAmelCase         =     ArgumentParser("Diffusers CLI tool"    ,   usage="diffusers-cli <command> [<args>]"    )
						UpperCAmelCase         =     parser.add_subparsers(help="diffusers-cli command helpers"    )

						# Register commands
						EnvironmentCommand.register_subcommand(lowerCamelCase_    )

						# Let's go
						UpperCAmelCase         =     parser.parse_args()

						if not hasattr(lowerCamelCase_    ,   "func"    ):
												parser.print_help()
												exit(1    )

						# Run
						UpperCAmelCase         =     args.func(lowerCamelCase_    )
						service.run()


if __name__ == "__main__":
		main()



