



import os






def        A       (      ):





       '''simple docstring'''




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

              _lowerCAmelCase  :							str				     =					0

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

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

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

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


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





def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							if length <= 0 or not isinstance(_lowerCamelCase       ,				_lowerCamelCase						):
														raise ValueError("Length must be a positive integer."						)
							return [n * (2 * n - 1) for n in range(_lowerCamelCase						)]


if __name__ == "__main__":
						print(hexagonal_numbers(length=5))
						print(hexagonal_numbers(length=10))
