





from __future__ import annotations

import typing
from collections import Counter





def        lowerCamelCase_      (  SCREAMING_SNAKE_CASE__      :			int   ) ->	typing.Counter[int]:
						UpperCAmelCase_			:      typing.Counter[int]     						=  Counter()
						for base in range(1,			max_perimeter + 1   ):
												for perpendicular in range(a_,			max_perimeter + 1   ):
																		UpperCAmelCase_			:      Any     						=  (base * base + perpendicular * perpendicular) ** 0.5
																		if hypotenuse == int(a_   ):
																								UpperCAmelCase_			:      List[Any]     						=  int(base + perpendicular + hypotenuse   )
																								if perimeter > max_perimeter:
																														continue
																								triplets[perimeter] += 1
						return triplets





def        lowerCamelCase_      (  SCREAMING_SNAKE_CASE__      :			int = 1000   ) ->	int:
						UpperCAmelCase_			:      Dict     						=  pythagorean_triple(a_   )
						return triplets.most_common(1   )[0][0]


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












'''simple docstring'''







import sys
import turtle





def        lowerCamelCase_      (  SCREAMING_SNAKE_CASE__      :			tuple[float, float],			SCREAMING_SNAKE_CASE__      :			tuple[float, float]   ) ->	tuple[float, float]:
						return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2





def        lowerCamelCase_      (  SCREAMING_SNAKE_CASE__      :			tuple[float, float],			SCREAMING_SNAKE_CASE__      :			tuple[float, float],			SCREAMING_SNAKE_CASE__      :			tuple[float, float],			SCREAMING_SNAKE_CASE__      :			int,			) ->	None:
						my_pen.up()
						my_pen.goto(vertexa[0],			vertexa[1]   )
						my_pen.down()
						my_pen.goto(vertexa[0],			vertexa[1]   )
						my_pen.goto(vertexa[0],			vertexa[1]   )
						my_pen.goto(vertexa[0],			vertexa[1]   )

						if depth == 0:
												return

						triangle(SCREAMING_SNAKE_CASE__,			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			depth - 1   )
						triangle(SCREAMING_SNAKE_CASE__,			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			depth - 1   )
						triangle(SCREAMING_SNAKE_CASE__,			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			get_mid(SCREAMING_SNAKE_CASE__,			SCREAMING_SNAKE_CASE__   ),			depth - 1   )


if __name__ == "__main__":
					if len(sys.argv) != 2:
										raise ValueError(
										    "Correct format for using this script: "
										    "python fractals.py <int:depth_for_fractal>"
										)
					snake_case_     :       Any						=  turtle.Turtle()
					my_pen.ht()
					my_pen.speed(5)
					my_pen.pencolor("red")

					snake_case_     :       Tuple						=  [(-1_75, -1_25), (0, 1_75), (1_75, -1_25)]  # vertices of triangle
					triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))





