"""simple docstring"""





import sys
import turtle


def    lowercase_   (   _lowerCamelCase:	tuple[float, float]						,   _lowerCamelCase:	tuple[float, float]      ) ->      Optional[int]:



       '''simple docstring'''

       return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2


def    lowercase_   (   _lowerCamelCase:	tuple[float, float]						,   _lowerCamelCase:	tuple[float, float]						,   _lowerCamelCase:	tuple[float, float]						,   _lowerCamelCase:	int						,   ) ->      int:



       '''simple docstring'''

       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(snake_case__						,   get_mid(snake_case__						,   snake_case__      )						,   get_mid(snake_case__						,   snake_case__      )						,   depth - 1      )
       triangle(snake_case__						,   get_mid(snake_case__						,   snake_case__      )						,   get_mid(snake_case__						,   snake_case__      )						,   depth - 1      )
       triangle(snake_case__						,   get_mid(snake_case__						,   snake_case__      )						,   get_mid(snake_case__						,   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>'''
        )
    __A  =				turtle.Turtle()
    my_pen.ht()
    my_pen.speed(5)
    my_pen.pencolor('''red''')

    __A  =				[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
    triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))
"""simple docstring"""





def    lowercase_   (   _lowerCamelCase:	int = 600851475143      ) ->      int:



							'''simple docstring'''

							try:
														__lowerCamelCase					:		Optional[Any]		   =     int(_lowerCamelCase      )
							except (TypeError, ValueError):
														raise TypeError("Parameter n must be int or castable to int."      )
							if n <= 0:
														raise ValueError("Parameter n must be greater than or equal to one."      )
							__lowerCamelCase					:		Union[str, Any]		   =     2
							__lowerCamelCase					:		int		   =     0
							if n == 2:
														return 2
							while n > 2:
														while n % i != 0:
																					i += 1
														__lowerCamelCase					:		Dict		   =     i
														while n % i == 0:
																					__lowerCamelCase					:		Union[str, Any]		   =     n // i
														i += 1
							return int(_lowerCamelCase      )


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