
"""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_   :   List[str]     	=       self.front
     while node:
        yield node.data
        UpperCAmelCase_   :   int     	=       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_   :   List[str]     	=       Node(lowercase_    )
     if self.is_empty():
        UpperCAmelCase_   :   Any     	=       node
     else:
        assert isinstance(self.rear							,  lowercase_    )
        UpperCAmelCase_   :   Union[str, Any]     	=       node
        UpperCAmelCase_   :   str     	=       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_   :   str     	=       self.front.next
     if self.front is None:
        UpperCAmelCase_   :   List[str]     	=       None
     return node.data







  def 			UpperCamelCase__   (						self    ):

     """simple docstring"""
     UpperCAmelCase_   :   Any     	=       None


if __name__ == "__main__":
    from doctest import testmod

    testmod()







'''simple docstring'''







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE = 1000     ):
		return sum(i for i in range(SCREAMING_SNAKE_CASE     ) if i % 3 == 0 or i % 5 == 0     )


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