

from __future__ import annotations

import typing
from collections import Counter

def 			lowerCamelCase__			(       _a):
	SCREAMING_SNAKE_CASE :   typing.Counter[int]					  =							Counter()
	for base in range(1				,      max_perimeter + 1):
		for perpendicular in range(_a				,      max_perimeter + 1):
			SCREAMING_SNAKE_CASE :   List[Any]					  =							(base * base + perpendicular * perpendicular) ** 0.5
			if hypotenuse == int(_a):
				SCREAMING_SNAKE_CASE :   int					  =							int(base + perpendicular + hypotenuse)
				if perimeter > max_perimeter:
					continue
				triplets[perimeter] += 1
	return triplets

def 			lowerCamelCase__			(       _a = 1000):
	SCREAMING_SNAKE_CASE :   List[str]					  =							pythagorean_triple(_a)
	return triplets.most_common(1)[0][0]


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


from typing import TYPE_CHECKING

from ....utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


a_      =     {'configuration_van': ['VAN_PRETRAINED_CONFIG_ARCHIVE_MAP', 'VanConfig']}


try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			a_      =     [
			    'VAN_PRETRAINED_MODEL_ARCHIVE_LIST',
			    'VanForImageClassification',
			    'VanModel',
			    'VanPreTrainedModel',
			]

if TYPE_CHECKING:
			from .configuration_van import VAN_PRETRAINED_CONFIG_ARCHIVE_MAP, VanConfig

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_van import (
						    VAN_PRETRAINED_MODEL_ARCHIVE_LIST,
						    VanForImageClassification,
						    VanModel,
						    VanPreTrainedModel,
						)

else:
			import sys

			a_      =     _LazyModule(__name__, globals()['__file__'], _import_structure)