



"""simple docstring"""




import sys
import turtle






def      __lowercase       (			a__							,       a__       )    ->			List[str]:
							return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2






def      __lowercase       (			a__							,       a__							,       a__							,       a__							,       )    ->			List[Any]:
							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(lowerCamelCase__							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       depth - 1       )
							triangle(lowerCamelCase__							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       depth - 1       )
							triangle(lowerCamelCase__							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       get_mid(lowerCamelCase__							,       lowerCamelCase__       )							,       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>'''
						)
			lowerCAmelCase__		:					int							=turtle.Turtle()
			my_pen.ht()
			my_pen.speed(5)
			my_pen.pencolor('''red''')

			lowerCAmelCase__		:					Optional[Any]							=[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
			triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))











def      __lowercase       (			a__ = 10_00       )    ->			int:
							__SCREAMING_SNAKE_CASE									= -1
							__SCREAMING_SNAKE_CASE									= 0
							for a in range(1							,       n // 3       ):
														# Solving the two equations a**2+b**2=c**2 and a+b+c=N eliminating c
														__SCREAMING_SNAKE_CASE									= (n * n - 2 * a * n) // (2 * n - 2 * a)
														__SCREAMING_SNAKE_CASE									= n - a - b
														if c * c == (a * a + b * b):
																					__SCREAMING_SNAKE_CASE									= a * b * c
																					if candidate >= product:
																												__SCREAMING_SNAKE_CASE									= candidate
							return product


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






