





class     SCREAMING_SNAKE_CASE       :


   def __init__(   self      :    List[str]      ,					a      :    int	)->       List[str]:





     """simple docstring"""







     lowercase__           =  n
     lowercase__           =  [None] * self.n
     lowercase__           =  0  # index of the first element
     lowercase__           =  0
     lowercase__           =  0


   def __len__(   self      :    Union[str, Any]	)->       int:





     """simple docstring"""







     return self.size


   def 	SCREAMING_SNAKE_CASE_							(   self      :    Optional[int]	)->       bool:





     """simple docstring"""







     return self.size == 0


   def 	SCREAMING_SNAKE_CASE_							(   self      :    Optional[int]	)->       Optional[int]:





     """simple docstring"""







     return False if self.is_empty() else self.array[self.front]


   def 	SCREAMING_SNAKE_CASE_							(   self      :    List[Any]      ,					a      :    Tuple	)->       Dict:





     """simple docstring"""







     if self.size >= self.n:
       raise Exception('QUEUE IS FULL'	)

     lowercase__           =  data
     lowercase__           =  (self.rear + 1) % self.n
     self.size += 1
     return self


   def 	SCREAMING_SNAKE_CASE_							(   self      :    List[Any]	)->       str:





     """simple docstring"""







     if self.size == 0:
       raise Exception('UNDERFLOW'	)

     lowercase__           =  self.array[self.front]
     lowercase__           =  None
     lowercase__           =  (self.front + 1) % self.n
     self.size -= 1
     return temp









def       __UpperCamelCase  (_SCREAMING_SNAKE_CASE		,						_SCREAMING_SNAKE_CASE		,						_SCREAMING_SNAKE_CASE		)    ->       int:

  if exponent == 1:
    return base
  if exponent % 2 == 0:
    lowercase__           =  _modexpt(_SCREAMING_SNAKE_CASE		,						exponent // 2		,						_SCREAMING_SNAKE_CASE		) % modulo_value
    return (x * x) % modulo_value
  else:
    return (base * _modexpt(_SCREAMING_SNAKE_CASE		,						exponent - 1		,						_SCREAMING_SNAKE_CASE		)) % modulo_value




def       __UpperCamelCase  (_SCREAMING_SNAKE_CASE = 1777		,						_SCREAMING_SNAKE_CASE = 1855		,						_SCREAMING_SNAKE_CASE = 8		)    ->       int:
  lowercase__           =  base
  for _ in range(1		,						_SCREAMING_SNAKE_CASE		):
    lowercase__           =  _modexpt(_SCREAMING_SNAKE_CASE		,						_SCREAMING_SNAKE_CASE		,						10**digits		)

  return result


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


