





'''simple docstring'''







import os






def  _lowerCamelCase				( )	->	Tuple:
				with open(os.path.dirname(lowercase						) + "/grid.txt"						) as f:
								_a								= []  # noqa: E741
								for _ in range(20						):
												l.append([int(lowercase						) 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())

from torch import nn





class 		_lowercase						(					nn.Module       ):

 def __init__( self	:							Any   ,      snake_case	:							Dict   ,      snake_case	:							Union[str, Any]			)   ->						Dict:

  """simple docstring"""





  super().__init__()
  UpperCamelCase_					:						List[Any] =					class_size
  UpperCamelCase_					:						List[Any] =					embed_size
  # self.mlp1 = nn.Linear(embed_size, embed_size)
  # self.mlp2 = (nn.Linear(embed_size, class_size))
  UpperCamelCase_					:						int =					nn.Linear(snake_case   ,      snake_case			)


 def 						SCREAMING_SNAKE_CASE__   ( self	:							List[str]   ,      snake_case	:							Any			)   ->						str:

  """simple docstring"""





  UpperCamelCase_					:						Dict =					self.mlp(snake_case			)
  return logits



