
"""simple docstring"""






class 							snake_case       :







   def __init__( self)   ->List[str]:
      a_						   =     []
      a_						   =     0
      a_						   =     0







   def __str__( self)   ->str:
      a_						   =     "<" + str(self.entries)[1:-1] + ">"
      return printed







   def    UpperCAmelCase__	( self       ,							__UpperCAmelCase)   ->List[Any]:
      self.entries.append(__UpperCAmelCase)
      a_						   =     self.length + 1







   def    UpperCAmelCase__	( self)   ->Dict:
      a_						   =     self.length - 1
      a_						   =     self.entries[self.front]
      # self.front-=1
      # self.entries = self.entries[self.front:]
      a_						   =     self.entries[1:]
      return dequeued







   def    UpperCAmelCase__	( self       ,							__UpperCAmelCase)   ->Dict:
      for _ in range(__UpperCAmelCase):
         self.put(self.get())







   def    UpperCAmelCase__	( self)   ->str:
      return self.entries[0]







   def    UpperCAmelCase__	( self)   ->int:
      return self.length






from __future__ import annotations
def  __UpperCamelCase    (						snake_case      )    ->		bool:


   '''simple docstring'''







   __A    =  42
   __A    =  list(snake_case      )
   __A   ,		__A    =  _vector[:-1], int(_vector[-1]      )
   __A    =  [int(snake_case      ) for digit in __vector]

   vector.reverse()
   for i, digit in enumerate(snake_case      ):
      if i & 1 == 0:
         __A    =  digit * 2
         if doubled > 9:
            doubled -= 9
         check_digit += doubled
      else:
         check_digit += digit

   return check_digit % 1_0 == 0


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    assert is_luhn("""79927398713""")
    assert not is_luhn("""79927398714""")

