



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

import typing
from collections import Counter






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






def A__   (					UpperCAmelCase_ = 1_0_0_0							):
						_UpperCamelCase :		Any			    =       pythagorean_triple(UpperCAmelCase_							)
						return triplets.most_common(1							)[0][0]


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







'''simple docstring'''
from torch import nn






def A__   (					UpperCAmelCase_							):
						if act_fn in ["swish", "silu"]:
												return nn.SiLU()
						elif act_fn == "mish":
												return nn.Mish()
						elif act_fn == "gelu":
												return nn.GELU()
						else:
												raise ValueError(f'Unsupported activation function: {act_fn}'							)


