


'''simple docstring'''






from manim import *






class    __snake_case       (   _SCREAMING_SNAKE_CASE):







    """simple docstring"""



    def __lowercase   (   self    :  int		)   ->  Tuple:
      lowerCAmelCase_			:      Optional[int]			=   Rectangle(height=0.5    ,						width=0.5		)
      lowerCAmelCase_			:      int			=   Rectangle(height=0.46    ,						width=0.46		).set_stroke(width=0		)

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

      lowerCAmelCase_			:      List[str]			=   [mem.copy() for i in range(4		)]
      lowerCAmelCase_			:      Tuple			=   VGroup(*lowerCamelCase		).arrange(lowerCamelCase    ,						buff=0		)
      lowerCAmelCase_			:      List[Any]			=   Text("""GPU"""    ,						font_size=24		)
      lowerCAmelCase_			:      Optional[Any]			=   Group(lowerCamelCase    ,						lowerCamelCase		).arrange(lowerCamelCase    ,						buff=0.5    ,						aligned_edge=lowerCamelCase		)
      gpu.move_to([-1, -1, 0]		)
      self.add(lowerCamelCase		)

      lowerCAmelCase_			:      Any			=   [mem.copy() for i in range(6		)]
      lowerCAmelCase_			:      Any			=   VGroup(*lowerCamelCase		).arrange(lowerCamelCase    ,						buff=0		)

      lowerCAmelCase_			:      Optional[Any]			=   Text("""Model"""    ,						font_size=24		)
      lowerCAmelCase_			:      Optional[int]			=   Group(lowerCamelCase    ,						lowerCamelCase		).arrange(lowerCamelCase    ,						buff=0.5    ,						aligned_edge=lowerCamelCase		)
      model.move_to([3, -1.0, 0]		)
      self.add(lowerCamelCase		)

      lowerCAmelCase_			:      Tuple			=   []
      for i, rect in enumerate(lowerCamelCase		):
        rect.set_stroke(lowerCamelCase		)
        # target = fill.copy().set_fill(YELLOW, opacity=0.7)
        # target.move_to(rect)
        # self.add(target)

        lowerCAmelCase_			:      int			=   Rectangle(height=0.46 / 4    ,						width=0.46 / 3		).set_stroke(width=0.0		).set_fill(lowerCamelCase    ,						opacity=0.7		)

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

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

      lowerCAmelCase_			:      Union[str, Any]			=   Text("""Loaded Checkpoint"""    ,						font_size=24		)
      lowerCAmelCase_			:      Union[str, Any]			=   Group(lowerCamelCase    ,						lowerCamelCase		).arrange(lowerCamelCase    ,						aligned_edge=lowerCamelCase    ,						buff=0.4		)
      checkpoint.move_to([3, 0.5, 0]		)

      lowerCAmelCase_			:      Optional[Any]			=   Square(side_length=2.2		)
      key.move_to([-5, 2, 0]		)

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

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

      self.add(lowerCamelCase    ,						lowerCamelCase		)

      lowerCAmelCase_			:      int			=   MarkupText(
          F'<span fgcolor=\'{BLUE}\'>●</span> Checkpoint'    ,						font_size=18    ,						)

      blue_text.next_to(lowerCamelCase    ,						DOWN * 2.4    ,						aligned_edge=key_text.get_left()		)

      lowerCAmelCase_			:      str			=   MarkupText(
          F'Next, a <i><span fgcolor="{BLUE}">second</span></i> model is loaded into memory,\nwith the weights of a <span fgcolor="{BLUE}">single shard</span>.'    ,						font_size=24    ,						)
      step_a.move_to([2, 2, 0]		)
      self.play(Write(lowerCamelCase		)    ,						Write(lowerCamelCase		)		)

      self.play(Write(lowerCamelCase    ,						run_time=1		)    ,						Create(lowerCamelCase    ,						run_time=1		)		)

      lowerCAmelCase_			:      Any			=   []
      lowerCAmelCase_			:      Tuple			=   []
      for i, rect in enumerate(lowerCamelCase		):
        lowerCAmelCase_			:      Union[str, Any]			=   fill.copy().set_fill(lowerCamelCase    ,						opacity=0.7		)
        target.move_to(lowerCamelCase		)
        first_animations.append(GrowFromCenter(lowerCamelCase    ,						run_time=1		)		)

        lowerCAmelCase_			:      List[str]			=   target.copy()
        cpu_target.generate_target()
        if i < 5:
          cpu_target.target.move_to(cpu_left_col_base[i + 1]		)
        else:
          cpu_target.target.move_to(cpu_right_col_base[i - 5]		)
        second_animations.append(MoveToTarget(lowerCamelCase    ,						run_time=1.5		)		)

      self.play(*lowerCamelCase		)
      self.play(*lowerCamelCase		)
      self.wait()







'''simple docstring'''






def 				UpperCamelCase_			(    A__					:   int = 10_00					):
  '''simple docstring'''





  lowerCAmelCase_			:      Optional[Any]			=   3
  lowerCAmelCase_			:      Dict			=   0
  while a < n:
    if a % 3 == 0 or a % 5 == 0:
      result += a
    elif a % 15 == 0:
      result -= a
    a += 1
  return result


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



