


import os
def 				UpperCAmelCase_					(							)     ->			List[str]:







 """simple docstring"""


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

  _lowercase							      =0

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

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

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

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


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




'''simple docstring'''
lowerCamelCase :      Any					 =     "\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

lowerCamelCase :      int					 =     [{"type": "code", "content": INSTALL_CONTENT}]
lowerCamelCase :      str					 =     {
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}
