


'''simple docstring'''

from __future__ import annotations

import typing
from collections import Counter

def _SCREAMING_SNAKE_CASE      (A       )       ->       Optional[Any]:






       """simple docstring"""







       lowercase__      			= Counter()
       for base in range(1  , max_perimeter + 1       ):
              for perpendicular in range(A  , max_perimeter + 1       ):
                     lowercase__      			= (base * base + perpendicular * perpendicular) ** 0.5
                     if hypotenuse == int(A       ):
                            lowercase__      			= int(base + perpendicular + hypotenuse       )
                            if perimeter > max_perimeter:
                                   continue
                            triplets[perimeter] += 1
       return triplets

def _SCREAMING_SNAKE_CASE      (A = 1_000       )       ->       Any:






       """simple docstring"""







       lowercase__      			= pythagorean_triple(A       )
       return triplets.most_common(1       )[0][0]


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










def 					UpperCAmelCase__     (   lowerCamelCase,	lowerCamelCase      ):
  lowercase			:List[str]							=  ""
  for word_or_phrase in separated:
    if not isinstance(lowerCamelCase,	lowerCamelCase      ):
      raise Exception("join() accepts only strings to be joined"      )
    joined += word_or_phrase + separator
  return joined.strip(lowerCamelCase      )


if __name__ == "__main__":
     from doctest import testmod

     testmod()



