'''simple docstring'''




from __future__ import annotations

import typing
from collections import Counter

def 	UpperCamelCase_							(					_UpperCAmelCase  :      int    )    ->    typing.Counter[int]:


       """simple docstring"""







       _UpperCAmelCase     :  typing.Counter[int]							      =    Counter()
       for base in range(1			,	max_perimeter + 1    ):
              for perpendicular in range(_UpperCAmelCase			,	max_perimeter + 1    ):
                     _UpperCAmelCase     :  Tuple							      =    (base * base + perpendicular * perpendicular) ** 0.5
                     if hypotenuse == int(_UpperCAmelCase    ):
                            _UpperCAmelCase     :  Optional[int]							      =    int(base + perpendicular + hypotenuse    )
                            if perimeter > max_perimeter:
                                   continue
                            triplets[perimeter] += 1
       return triplets

def 	UpperCamelCase_							(					_UpperCAmelCase  :      int = 1_000    )    ->    int:


       """simple docstring"""







       _UpperCAmelCase     :  int							      =    pythagorean_triple(_UpperCAmelCase    )
       return triplets.most_common(1    )[0][0]


if __name__ == "__main__":
  print(F'Perimeter {solution()} has maximum solutions')



'''simple docstring'''







import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


__lowerCAmelCase         =    HUGGINGFACE_HUB_CACHE


__lowerCAmelCase         =    """config.json"""
__lowerCAmelCase         =    """diffusion_pytorch_model.bin"""
__lowerCAmelCase         =    """diffusion_flax_model.msgpack"""
__lowerCAmelCase         =    """model.onnx"""
__lowerCAmelCase         =    """diffusion_pytorch_model.safetensors"""
__lowerCAmelCase         =    """weights.pb"""
__lowerCAmelCase         =    """https://huggingface.co"""
__lowerCAmelCase         =    default_cache_path
__lowerCAmelCase         =    """diffusers_modules"""
__lowerCAmelCase         =    os.getenv("""HF_MODULES_CACHE""", os.path.join(hf_cache_home, """modules"""))
__lowerCAmelCase         =    ["""fp16""", """non-ema"""]
__lowerCAmelCase         =    """.self_attn"""



