

'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowerCamelCase			:				Union[str, Any] 			=					logging.get_logger(__name__)

lowerCamelCase			:				List[Any] 			=					{
    "caidas/swin2sr-classicalsr-x2-64": (
        "https://huggingface.co/caidas/swin2sr-classicalsr-x2-64/resolve/main/config.json"
    ),
}







class 							A__   (	A__  ):
  A__					=    'swin2sr'

  A__					=    {
      'hidden_size': 'embed_dim',
      'num_attention_heads': 'num_heads',
      'num_hidden_layers': 'num_layers',
  }





  def __init__(		self				:     List[Any]							, _a				:     Any=64							, _a				:     Optional[Any]=1							, _a				:     str=3							, _a				:     Optional[Any]=180							, _a				:     str=[6, 6, 6, 6, 6, 6]							, _a				:     Dict=[6, 6, 6, 6, 6, 6]							, _a				:     Any=8							, _a				:     str=2.0							, _a				:     int=True							, _a				:     Optional[Any]=0.0							, _a				:     List[str]=0.0							, _a				:     List[str]=0.1							, _a				:     List[Any]="gelu"							, _a				:     Any=False							, _a				:     Any=0.02							, _a				:     Dict=1e-5							, _a				:     Union[str, Any]=2							, _a				:     Any=1.0							, _a				:     int="1conv"							, _a				:     Dict="pixelshuffle"							, **_a				:     str							, )     ->   Optional[int]:





       '''simple docstring'''






       super().__init__(**_a			)

       _SCREAMING_SNAKE_CASE							   =image_size
       _SCREAMING_SNAKE_CASE							   =patch_size
       _SCREAMING_SNAKE_CASE							   =num_channels
       _SCREAMING_SNAKE_CASE							   =embed_dim
       _SCREAMING_SNAKE_CASE							   =depths
       _SCREAMING_SNAKE_CASE							   =len(_a			)
       _SCREAMING_SNAKE_CASE							   =num_heads
       _SCREAMING_SNAKE_CASE							   =window_size
       _SCREAMING_SNAKE_CASE							   =mlp_ratio
       _SCREAMING_SNAKE_CASE							   =qkv_bias
       _SCREAMING_SNAKE_CASE							   =hidden_dropout_prob
       _SCREAMING_SNAKE_CASE							   =attention_probs_dropout_prob
       _SCREAMING_SNAKE_CASE							   =drop_path_rate
       _SCREAMING_SNAKE_CASE							   =hidden_act
       _SCREAMING_SNAKE_CASE							   =use_absolute_embeddings
       _SCREAMING_SNAKE_CASE							   =layer_norm_eps
       _SCREAMING_SNAKE_CASE							   =initializer_range
       _SCREAMING_SNAKE_CASE							   =upscale
       _SCREAMING_SNAKE_CASE							   =img_range
       _SCREAMING_SNAKE_CASE							   =resi_connection
       _SCREAMING_SNAKE_CASE							   =upsampler



'''simple docstring'''
import os


def 	_lowerCAmelCase (						)				->      List[str]:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =os.path.dirname(os.path.realpath(_UpperCamelCase    )    )
     _SCREAMING_SNAKE_CASE							   =os.path.join(_UpperCamelCase							,			'triangle.txt'    )

     with open(_UpperCamelCase    ) as f:
          _SCREAMING_SNAKE_CASE							   =f.readlines()

     _SCREAMING_SNAKE_CASE							   =[]
     for line in triangle:
          _SCREAMING_SNAKE_CASE							   =[]
          for number in line.strip().split(' '    ):
               numbers_from_line.append(int(_UpperCamelCase    )    )
          a.append(_UpperCamelCase    )

     for i in range(1							,			len(_UpperCamelCase    )    ):
          for j in range(len(a[i]    )    ):
               _SCREAMING_SNAKE_CASE							   =a[i - 1][j] if j != len(a[i - 1]    ) else 0
               _SCREAMING_SNAKE_CASE							   =a[i - 1][j - 1] if j > 0 else 0
               a[i][j] += max(_UpperCamelCase							,			_UpperCamelCase    )
     return max(a[-1]    )


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