






'''simple docstring'''







from __future__ import annotations

from typing import Any




class      __UpperCAmelCase					:


  """simple docstring"""


  def __init__( self      ,  UpperCamelCase__      ,  UpperCamelCase__  ):  # noqa: A002






         """simple docstring"""


         a_	    = item
         a_	    = next





class      __UpperCAmelCase					:


  """simple docstring"""


  def __init__( self  ):






         """simple docstring"""


         a_	    = None
         a_	    = 0







  def       _a					( self      ,  UpperCamelCase__  ):






         """simple docstring"""


         a_	    = Node(__UpperCamelCase      ,  self.head  )
         self.size += 1







  def       _a					( self  ):






         """simple docstring"""


         if self.head is None:
                return None
         else:
                a_	    = self.head.item
                a_	    = self.head.next
                self.size -= 1
                return item







  def       _a					( self  ):






         """simple docstring"""


         return self.head is None







  def __str__( self  ):






         """simple docstring"""


         if self.is_empty():
                return ""
         else:
                a_	    = self.head
                a_	    = ''''''
                a_	    = []
                while iterate:
                       item_list.append(str(iterate.item  )  )
                       a_	    = iterate.next

                a_	    = ''' --> '''.join(__UpperCamelCase  )

                return item_str







  def __len__( self  ):






         """simple docstring"""


         return self.size












'''simple docstring'''







def 			__UpperCamelCase				(			lowercase_					:     int      ,					lowercase_					:     int      ):
       """simple docstring"""




       return (input_a, input_a).count(0      ) % 2


def 			__UpperCamelCase				(			):
       """simple docstring"""




       assert xor_gate(0      ,					0      ) == 0
       assert xor_gate(0      ,					1      ) == 1
       assert xor_gate(1      ,					0      ) == 1
       assert xor_gate(1      ,					1      ) == 0


if __name__ == "__main__":
  print(xor_gate(0, 0))
  print(xor_gate(0, 1))




