


from typing import List

from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowerCAmelCase      :					List[str]    							=logging.get_logger(__name__)

__lowerCAmelCase      :					List[str]    							={
    'snap-research/efficientformer-l1-300': (
        'https://huggingface.co/snap-research/efficientformer-l1-300/resolve/main/config.json'
    ),
}
class 			_lowercase (     A__			):






				'''simple docstring'''



				SCREAMING_SNAKE_CASE__							:     Optional[int]         =						'''efficientformer'''


				def __init__(			self     :Any     ,     lowerCAmelCase__     :Optional[int] = [3, 2, 6, 4]     ,     lowerCAmelCase__     :List[str] = [48, 96, 224, 448]     ,     lowerCAmelCase__     :str = [True, True, True, True]     ,     lowerCAmelCase__     :Optional[Any] = 448     ,     lowerCAmelCase__     :List[Any] = 32     ,     lowerCAmelCase__     :List[str] = 4     ,     lowerCAmelCase__     :Dict = 7     ,     lowerCAmelCase__     :int = 5     ,     lowerCAmelCase__     :Optional[Any] = 8     ,     lowerCAmelCase__     :List[str] = 4     ,     lowerCAmelCase__     :Optional[int] = 0.0     ,     lowerCAmelCase__     :Union[str, Any] = 16     ,     lowerCAmelCase__     :List[str] = 3     ,     lowerCAmelCase__     :Any = 3     ,     lowerCAmelCase__     :Optional[int] = 3     ,     lowerCAmelCase__     :Union[str, Any] = 2     ,     lowerCAmelCase__     :int = 1     ,     lowerCAmelCase__     :Dict = 0.0     ,     lowerCAmelCase__     :str = 1     ,     lowerCAmelCase__     :List[Any] = True     ,     lowerCAmelCase__     :str = True     ,     lowerCAmelCase__     :List[str] = 1E-5     ,     lowerCAmelCase__     :Tuple = "gelu"     ,     lowerCAmelCase__     :Any = 0.02     ,     lowerCAmelCase__     :Union[str, Any] = 1E-1_2     ,     lowerCAmelCase__     :Any = 224     ,     lowerCAmelCase__     :List[str] = 1E-0_5     ,     **lowerCAmelCase__     :int     ,     )						->     None:
										super().__init__(**snake_case_      )

										__SCREAMING_SNAKE_CASE		:	Dict						     =						hidden_act
										__SCREAMING_SNAKE_CASE		:	List[str]						     =						hidden_dropout_prob
										__SCREAMING_SNAKE_CASE		:	List[str]						     =						hidden_sizes
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						num_hidden_layers
										__SCREAMING_SNAKE_CASE		:	Dict						     =						num_attention_heads
										__SCREAMING_SNAKE_CASE		:	Any						     =						initializer_range
										__SCREAMING_SNAKE_CASE		:	int						     =						layer_norm_eps
										__SCREAMING_SNAKE_CASE		:	int						     =						patch_size
										__SCREAMING_SNAKE_CASE		:	int						     =						num_channels
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						depths
										__SCREAMING_SNAKE_CASE		:	Optional[int]						     =						mlp_expansion_ratio
										__SCREAMING_SNAKE_CASE		:	Dict						     =						downsamples
										__SCREAMING_SNAKE_CASE		:	List[Any]						     =						dim
										__SCREAMING_SNAKE_CASE		:	Optional[int]						     =						key_dim
										__SCREAMING_SNAKE_CASE		:	Any						     =						attention_ratio
										__SCREAMING_SNAKE_CASE		:	Dict						     =						resolution
										__SCREAMING_SNAKE_CASE		:	Dict						     =						pool_size
										__SCREAMING_SNAKE_CASE		:	Any						     =						downsample_patch_size
										__SCREAMING_SNAKE_CASE		:	Optional[int]						     =						downsample_stride
										__SCREAMING_SNAKE_CASE		:	str						     =						downsample_pad
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						drop_path_rate
										__SCREAMING_SNAKE_CASE		:	str						     =						num_metaad_blocks
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						distillation
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						use_layer_scale
										__SCREAMING_SNAKE_CASE		:	Dict						     =						layer_scale_init_value
										__SCREAMING_SNAKE_CASE		:	Union[str, Any]						     =						image_size
										__SCREAMING_SNAKE_CASE		:	List[Any]						     =						batch_norm_eps


"""simple docstring"""
import os

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

												__lowerCAmelCase     =  0

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

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

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

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


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