



'''simple docstring'''





from __future__ import annotations

from typing import Any


class 							_lowerCAmelCase	:


 """simple docstring"""

 def __init__(      self					,    _lowerCamelCase					,    _lowerCamelCase  )    ->    None:  # noqa: A002
    A_  :		Union[str, Any]						=					item
    A_  :		Dict						=					next


class 							_lowerCAmelCase	:


 """simple docstring"""

 def __init__(      self  )    ->    None:
    A_  :		Node | None						=					None
    A_  :		Any						=					0







 def       UpperCAmelCase_       (      self					,    _lowerCamelCase  )    ->    None:
    A_  :		List[Any]						=					Node(_lowerCamelCase					,    self.head  )
    self.size += 1







 def       UpperCAmelCase_       (      self  )    ->    Any:
    # Switched 'self.is_empty()' to 'self.head is None'
    # because mypy was considering the possibility that 'self.head'
    # can be None in below else part and giving error
    if self.head is None:
       return None
    else:
       A_  :		int						=					self.head.item
       A_  :		Optional[int]						=					self.head.next
       self.size -= 1
       return item







 def       UpperCAmelCase_       (      self  )    ->    bool:
    return self.head is None







 def __str__(      self  )    ->    str:
    if self.is_empty():
       return ""
    else:
       A_  :		str						=					self.head
       A_  :		Any						=					""""""
       A_  :		list[str]						=					[]
       while iterate:
          item_list.append(str(iterate.item  )  )
          A_  :		Optional[int]						=					iterate.next

       A_  :		Union[str, Any]						=					""" --> """.join(_lowerCamelCase  )

       return item_str







 def __len__(      self  )    ->    int:
    return self.size





'''simple docstring'''





def     UpperCAmelCase     (    a_      ,		a_		)   ->       set:



   """simple docstring"""






   assert isinstance(a_      ,		a_		), F"The input value of [set_a={set_a}] is not a set"
   assert isinstance(a_      ,		a_		), F"The input value of [set_b={set_b}] is not a set"

   return {a + b for a in set_a for b in set_b}


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

  testmod()
