




'''simple docstring'''

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


a       :						List[Any]								=		{
    'configuration_luke': ['LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP', 'LukeConfig'],
    'tokenization_luke': ['LukeTokenizer'],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						a       :						int								=		[
						    'LUKE_PRETRAINED_MODEL_ARCHIVE_LIST',
						    'LukeForEntityClassification',
						    'LukeForEntityPairClassification',
						    'LukeForEntitySpanClassification',
						    'LukeForMultipleChoice',
						    'LukeForQuestionAnswering',
						    'LukeForSequenceClassification',
						    'LukeForTokenClassification',
						    'LukeForMaskedLM',
						    'LukeModel',
						    'LukePreTrainedModel',
						]


if TYPE_CHECKING:
						from .configuration_luke import LUKE_PRETRAINED_CONFIG_ARCHIVE_MAP, LukeConfig
						from .tokenization_luke import LukeTokenizer

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_luke import (
												    LUKE_PRETRAINED_MODEL_ARCHIVE_LIST,
												    LukeForEntityClassification,
												    LukeForEntityPairClassification,
												    LukeForEntitySpanClassification,
												    LukeForMaskedLM,
												    LukeForMultipleChoice,
												    LukeForQuestionAnswering,
												    LukeForSequenceClassification,
												    LukeForTokenClassification,
												    LukeModel,
												    LukePreTrainedModel,
												)

else:
						import sys

						a       :						Any								=		_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)







"""simple docstring"""




from __future__ import annotations

import typing
from collections import Counter




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



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




def 			_lowerCAmelCase		(		_UpperCamelCase = 1_000    ):






  """simple docstring"""



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


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