
"""simple docstring"""






from itertools import combinations, product



def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__ ,      __magic_name__ ,      __magic_name__			)	->bool:
			if xa == ya == 0 or xa == ya == 0:
						return False
			__lowercase						      =					xa * xa + ya * ya
			__lowercase						      =					xa * xa + ya * ya
			__lowercase						      =					(xa - xa) * (xa - xa) + (ya - ya) * (ya - ya)
			return (
			    a_square + b_square == c_square
			    or a_square + c_square == b_square
			    or b_square + c_square == a_square
			)



def     lowerCAmelCase__ (		__magic_name__ = 5_0			)	->int:
			return sum(
			    1
			    for pta, pta in combinations(product(range(limit + 1			) ,      repeat=2			) ,      2			)
			    if is_right(*__magic_name__ ,      *__magic_name__			)			)


if __name__ == "__main__":
					print(F"{solution() = }")







"""simple docstring"""






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowercase							 =							{'''configuration_sew_d''': ['''SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''SEWDConfig''']}

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					_lowercase							 =							[
					    '''SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''SEWDForCTC''',
					    '''SEWDForSequenceClassification''',
					    '''SEWDModel''',
					    '''SEWDPreTrainedModel''',
					]

if TYPE_CHECKING:
					from .configuration_sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_sew_d import (
										    SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST,
										    SEWDForCTC,
										    SEWDForSequenceClassification,
										    SEWDModel,
										    SEWDPreTrainedModel,
										)


else:
					import sys

					_lowercase							 =							_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)





