
'''simple docstring'''
import inspect
import unittest


class       _lowerCAmelCase   (   unittest.TestCase				):







       '''simple docstring'''

       def 	lowercase							(self  )					->       Optional[int]:
              try:
                     import diffusers  # noqa: F401
              except ImportError:
                     assert False





       def 	lowercase							(self  )					->       List[str]:
              import diffusers
              from diffusers.dependency_versions_table import deps

              _snake_case       =  inspect.getmembers(UpperCAmelCase__  ,  inspect.isclass  )

              for cls_name, cls_module in all_classes:
                     if "dummy_" in cls_module.__module__:
                            for backend in cls_module._backends:
                                   if backend == "k_diffusion":
                                          _snake_case       =  """k-diffusion"""
                                   elif backend == "invisible_watermark":
                                          _snake_case       =  """invisible-watermark"""
                                   assert backend in deps, f"""{backend} is not in the deps table!"""

'''simple docstring'''
from __future__ import annotations

import typing
from collections import Counter






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






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE = 1000				):
							_snake_case       =  pythagorean_triple(_SCREAMING_SNAKE_CASE				)
							return triplets.most_common(1				)[0][0]


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