



'''simple docstring'''


from __future__ import annotations

from typing import Any

class  SCREAMING_SNAKE_CASE :






    """simple docstring"""





    def __init__(  self      :					List[str]  ,						UpperCamelCase__      :					int = 6 ):


       """simple docstring"""







       UpperCamelCase					=  None
       UpperCamelCase					=  None
       self.create_linked_list(UpperCamelCase__ )






    def  A       (  self      :					List[Any]  ,						UpperCamelCase__      :					int ):


       """simple docstring"""







       UpperCamelCase					=  Node()
       UpperCamelCase					=  current_node
       UpperCamelCase					=  current_node
       UpperCamelCase					=  current_node
       for _ in range(1  ,						UpperCamelCase__ ):
          UpperCamelCase					=  Node()
          UpperCamelCase					=  current_node
          UpperCamelCase					=  previous_node
          UpperCamelCase					=  current_node
       UpperCamelCase					=  self.front
       UpperCamelCase					=  previous_node






    def  A       (  self      :					str ):


       """simple docstring"""







       return (
           self.front == self.rear
           and self.front is not None
           and self.front.data is None
       )






    def  A       (  self      :					List[str] ):


       """simple docstring"""







       self.check_can_perform_operation()
       return self.front.data if self.front else None






    def  A       (  self      :					str  ,						UpperCamelCase__      :					Any ):


       """simple docstring"""







       if self.rear is None:
          return

       self.check_is_full()
       if not self.is_empty():
          UpperCamelCase					=  self.rear.next
       if self.rear:
          UpperCamelCase					=  data






    def  A       (  self      :					Dict ):


       """simple docstring"""







       self.check_can_perform_operation()
       if self.rear is None or self.front is None:
          return None
       if self.front == self.rear:
          UpperCamelCase					=  self.front.data
          UpperCamelCase					=  None
          return data

       UpperCamelCase					=  self.front
       UpperCamelCase					=  old_front.next
       UpperCamelCase					=  old_front.data
       UpperCamelCase					=  None
       return data






    def  A       (  self      :					Any ):


       """simple docstring"""







       if self.is_empty():
          raise Exception('Empty Queue' )






    def  A       (  self      :					Tuple ):


       """simple docstring"""







       if self.rear and self.rear.next == self.front:
          raise Exception('Full Queue' )

class  SCREAMING_SNAKE_CASE :






    """simple docstring"""





    def __init__(  self      :					Any ):


       """simple docstring"""







       UpperCamelCase					=  None
       UpperCamelCase					=  None
       UpperCamelCase					=  None


if __name__ == "__main__":
   import doctest

   doctest.testmod()






"""simple docstring"""
A:   Union[str, Any]								=		{
    0: "0",
    1: "1",
    2: "2",
    3: "3",
    4: "4",
    5: "5",
    6: "6",
    7: "7",
    8: "8",
    9: "9",
    1_0: "a",
    1_1: "b",
    1_2: "c",
    1_3: "d",
    1_4: "e",
    1_5: "f",
}

def       _snake_case						(						UpperCamelCase						:		float						):
 assert type(UpperCamelCase						) in (int, float) and decimal == int(UpperCamelCase						)
 UpperCAmelCase	:					str	=	int(UpperCamelCase						)
 UpperCAmelCase	:					Optional[int]	=	""""""
 UpperCAmelCase	:					List[str]	=	False
 if decimal < 0:
  UpperCAmelCase	:					Any	=	True
  decimal *= -1
 while decimal > 0:
  UpperCAmelCase	,		UpperCAmelCase	:					Dict	=	divmod(UpperCamelCase			,		16						)
  UpperCAmelCase	:					Union[str, Any]	=	values[remainder] + hexadecimal
 UpperCAmelCase	:					int	=	"""0x""" + hexadecimal
 if negative:
  UpperCAmelCase	:					Optional[int]	=	"""-""" + hexadecimal
 return hexadecimal


if __name__ == "__main__":
      import doctest

      doctest.testmod()
