


from __future__ import annotations

import typing
from collections import Counter
def 				UpperCAmelCase_					(							__snake_case						)     ->			typing.Counter[int]:







 """simple docstring"""


 _lowercase							      =Counter()
 for base in range(1     ,						max_perimeter + 1						):
  for perpendicular in range(__snake_case     ,						max_perimeter + 1						):
   _lowercase							      =(base * base + perpendicular * perpendicular) ** 0.5
   if hypotenuse == int(__snake_case						):
    _lowercase							      =int(base + perpendicular + hypotenuse						)
    if perimeter > max_perimeter:
     continue
    triplets[perimeter] += 1
 return triplets
def 				UpperCAmelCase_					(							__snake_case = 1000						)     ->			int:







 """simple docstring"""


 _lowercase							      =pythagorean_triple(__snake_case						)
 return triplets.most_common(1						)[0][0]


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





def 				UpperCAmelCase_					(							__snake_case     ,						__snake_case						)     ->			List[Any]:







 """simple docstring"""


 if b == 0:
  return 1
 if (b % 2) == 0:
  return actual_power(__snake_case     ,						int(b / 2						)						) * actual_power(__snake_case     ,						int(b / 2						)						)
 else:
  return a * actual_power(__snake_case     ,						int(b / 2						)						) * actual_power(__snake_case     ,						int(b / 2						)						)
def 				UpperCAmelCase_					(							__snake_case     ,						__snake_case						)     ->			float:







 """simple docstring"""


 if b < 0:
  return 1 / actual_power(__snake_case     ,						__snake_case						)
 return actual_power(__snake_case     ,						__snake_case						)


if __name__ == "__main__":
  print(power(-2, -3))

