code: 
  """simple docstring"""
  
  
  
  
  
  from __future__ import annotations
  
  from collections.abc import Iterator
  from typing import Any
  
  
  class A_			:
  
  
  
  
    '''simple docstring'''
  
  
  
  
  
  
  
    def __init__(	self       ,     lowercase_						):
  
       """simple docstring"""
       UpperCAmelCase_      :      Any      =					data
       UpperCAmelCase_      :      Node | None      =					None
  
  
  
  
  
  
  
    def __str__(	self						):
  
       """simple docstring"""
       return F"""{self.data}"""
  
  
  
  
  class A_			:
  
  
  
  
    '''simple docstring'''
  
  
  
  
  
  
  
    def __init__(	self						):
  
       """simple docstring"""
       UpperCAmelCase_      :      Node | None      =					None
       UpperCAmelCase_      :      Node | None      =					None
  
  
  
  
  
  
  
    def __iter__(	self						):
  
       """simple docstring"""
       UpperCAmelCase_      :      Tuple      =					self.front
       while node:
          yield node.data
          UpperCAmelCase_      :      Dict      =					node.next
  
  
  
  
  
  
  
    def __len__(	self						):
  
       """simple docstring"""
       return len(tuple(iter(self						)						)						)
  
  
  
  
  
  
  
    def __str__(	self						):
  
       """simple docstring"""
       return " <- ".join(str(lowercase_						) for item in self						)
  
  
  
  
  
  
  
    def  UpperCamelCase__      (	self						):
  
       """simple docstring"""
       return len(self						) == 0
  
  
  
  
  
  
  
    def  UpperCamelCase__      (	self       ,     lowercase_						):
  
       """simple docstring"""
       UpperCAmelCase_      :      Dict      =					Node(lowercase_						)
       if self.is_empty():
          UpperCAmelCase_      :      int      =					node
       else:
          assert isinstance(self.rear       ,     lowercase_						)
          UpperCAmelCase_      :      Optional[int]      =					node
          UpperCAmelCase_      :      Any      =					node
  
  
  
  
  
  
  
    def  UpperCamelCase__      (	self						):
  
       """simple docstring"""
       if self.is_empty():
          raise IndexError("dequeue from empty queue"						)
       assert isinstance(self.front       ,     lowercase_						)
       UpperCAmelCase_      :      int      =					self.front
       UpperCAmelCase_      :      Optional[Any]      =					self.front.next
       if self.front is None:
          UpperCAmelCase_      :      List[Any]      =					None
       return node.data
  
  
  
  
  
  
  
    def  UpperCamelCase__      (	self						):
  
       """simple docstring"""
       UpperCAmelCase_      :      Optional[Any]      =					None
  
  
  if __name__ == "__main__":
      from doctest import testmod
  
      testmod()
  
  
  
style_context: 
  """simple docstring"""
  
  
  
  
  
  def 			__a  (	__lowerCamelCase = 1000						):
     UpperCAmelCase_      :      List[Any]      =					0
     UpperCAmelCase_      :      List[str]      =					(n - 1) // 3
     total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
     UpperCAmelCase_      :      Any      =					(n - 1) // 5
     total += ((terms) * (10 + (terms - 1) * 5)) // 2
     UpperCAmelCase_      :      Optional[int]      =					(n - 1) // 15
     total -= ((terms) * (30 + (terms - 1) * 15)) // 2
     return total
  
  
  if __name__ == "__main__":
      print(f"""{solution() = }""")
  
  
  