



from manim import *
class 					a	(  UpperCAmelCase__       ):



  def 	lowerCamelCase__       (						self :					Union[str, Any]		)     ->					List[Any]:


     '''simple docstring'''




     SCREAMING_SNAKE_CASE_: Union[str, Any]     			=Rectangle(height=0.5       ,		width=0.5		)
     SCREAMING_SNAKE_CASE_: int     			=Rectangle(height=0.4_6       ,		width=0.4_6		).set_stroke(width=0		)

     SCREAMING_SNAKE_CASE_: Optional[Any]     			=[mem.copy() for i in range(6		)]
     SCREAMING_SNAKE_CASE_: List[Any]     			=[mem.copy() for i in range(6		)]
     SCREAMING_SNAKE_CASE_: Dict     			=VGroup(*lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0		)
     SCREAMING_SNAKE_CASE_: Dict     			=VGroup(*lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0		)
     SCREAMING_SNAKE_CASE_: Optional[int]     			=VGroup(lowerCAmelCase       ,		lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0		)
     SCREAMING_SNAKE_CASE_: Union[str, Any]     			=Text("""CPU"""       ,		font_size=24		)
     SCREAMING_SNAKE_CASE_: str     			=Group(lowerCAmelCase       ,		lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0.5       ,		aligned_edge=lowerCAmelCase		)
     cpu.move_to([-2.5, -0.5, 0]		)
     self.add(lowerCAmelCase		)

     SCREAMING_SNAKE_CASE_: Any     			=[mem.copy() for i in range(1		)]
     SCREAMING_SNAKE_CASE_: Dict     			=VGroup(*lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0		)
     SCREAMING_SNAKE_CASE_: Dict     			=Text("""GPU"""       ,		font_size=24		)
     SCREAMING_SNAKE_CASE_: str     			=Group(lowerCAmelCase       ,		lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0.5       ,		aligned_edge=lowerCAmelCase		)
     gpu.align_to(lowerCAmelCase       ,		lowerCAmelCase		)
     gpu.set_x(gpu.get_x() - 1		)

     self.add(lowerCAmelCase		)

     SCREAMING_SNAKE_CASE_: Tuple     			=[mem.copy() for i in range(6		)]
     SCREAMING_SNAKE_CASE_: Tuple     			=VGroup(*lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0		)

     SCREAMING_SNAKE_CASE_: Union[str, Any]     			=Text("""Model"""       ,		font_size=24		)
     SCREAMING_SNAKE_CASE_: List[Any]     			=Group(lowerCAmelCase       ,		lowerCAmelCase		).arrange(lowerCAmelCase       ,		buff=0.5       ,		aligned_edge=lowerCAmelCase		)
     model.move_to([3, -1.0, 0]		)

     self.play(
         Create(lowerCAmelCase       ,		run_time=1		)       ,		Create(lowerCAmelCase       ,		run_time=1		)       ,		Create(lowerCAmelCase       ,		run_time=1		)       ,		)

     SCREAMING_SNAKE_CASE_: List[Any]     			=MarkupText(
         f'''First, an empty model skeleton is loaded\ninto <span fgcolor=\'{YELLOW}\'>memory</span> without using much RAM.'''       ,		font_size=24       ,		)

     SCREAMING_SNAKE_CASE_: Union[str, Any]     			=Square(side_length=2.2		)
     key.move_to([-5, 2, 0]		)

     SCREAMING_SNAKE_CASE_: Any     			=MarkupText(
         f'''<b>Key:</b>\n\n<span fgcolor=\'{YELLOW}\'>●</span> Empty Model'''       ,		font_size=18       ,		)

     key_text.move_to([-5, 2.4, 0]		)

     step_a.move_to([2, 2, 0]		)
     self.play(Write(lowerCAmelCase       ,		run_time=2.5		)       ,		Write(lowerCAmelCase		)       ,		Write(lowerCAmelCase		)		)

     self.add(lowerCAmelCase		)

     SCREAMING_SNAKE_CASE_: int     			=[]
     SCREAMING_SNAKE_CASE_: Union[str, Any]     			=[]
     SCREAMING_SNAKE_CASE_: List[Any]     			=[]
     for i, rect in enumerate(lowerCAmelCase		):
        SCREAMING_SNAKE_CASE_: Dict     			=Rectangle(height=0.4_6       ,		width=0.4_6		).set_stroke(width=0.0		).set_fill(lowerCAmelCase       ,		opacity=0.7		)
        cpu_target.move_to(lowerCAmelCase		)
        cpu_target.generate_target()
        SCREAMING_SNAKE_CASE_: str     			=0.4_6 / 4
        SCREAMING_SNAKE_CASE_: Union[str, Any]     			=0.4_6 / 3

        if i == 0:
           cpu_target.target.next_to(cpu_left_col_base[0].get_corner(DOWN + LEFT		)       ,		buff=0.0_2       ,		direction=lowerCAmelCase		)
           cpu_target.target.set_x(cpu_target.target.get_x() + 0.1		)
        elif i == 3:
           cpu_target.target.next_to(cpu_targs[0].target       ,		direction=lowerCAmelCase       ,		buff=0.0		)
        else:
           cpu_target.target.next_to(cpu_targs[i - 1].target       ,		direction=lowerCAmelCase       ,		buff=0.0		)
        cpu_targs.append(lowerCAmelCase		)

        first_animations.append(rect.animate(run_time=0.5		).set_stroke(lowerCAmelCase		)		)
        second_animations.append(MoveToTarget(lowerCAmelCase       ,		run_time=1.5		)		)

     self.play(*lowerCAmelCase		)
     self.play(*lowerCAmelCase		)

     self.wait()








"""simple docstring"""
from __future__ import annotations





def      __magic_name__				(							lowercase							,			lowercase ):
   SCREAMING_SNAKE_CASE_: List[Any]     			=sorted(numsa + numsa )
   SCREAMING_SNAKE_CASE_			,		SCREAMING_SNAKE_CASE_: Tuple     			=divmod(len(lowercase )							,			2 )
   if mod == 1:
      return all_numbers[div]
   else:
      return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   _UpperCAmelCase     =			[float(x) for x in input("""Enter the elements of first array: """).split()]
   _UpperCAmelCase     =			[float(x) for x in input("""Enter the elements of second array: """).split()]
   print(f"""The median of two arrays is: {median_of_two_arrays(array_a, array_a)}""")



