


def       a__						(		snake_case__				:       Optional[Any]	,      snake_case__				:       Union[str, Any]    ):
  return (input_a, input_a).count(0    ) % 2




def       a__						(		):
  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))









import os

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

SCREAMING_SNAKE_CASE__				:    int         =    {'UserAgent': UserAgent().random}
SCREAMING_SNAKE_CASE__				:    Tuple         =    'https://www.mywaifulist.moe/random'




def       a__						(		snake_case__				:       str	,      snake_case__				:       str    ):
  _UpperCAmelCase		:       Any       =    requests.get(snake_case__	,      headers=snake_case__    )
  with open(snake_case__	,      """wb"""    ) as file:
    file.write(image.content    )




def       a__						(		):
  _UpperCAmelCase		:       List[Any]       =    BeautifulSoup(requests.get(snake_case__	,      headers=snake_case__    ).text	,      """html.parser"""    )
  _UpperCAmelCase		:       Optional[int]       =    soup.find("""meta"""	,      attrs={"""property""": """og:title"""}    ).attrs["""content"""]
  _UpperCAmelCase		:       int       =    soup.find("""meta"""	,      attrs={"""property""": """og:image"""}    ).attrs["""content"""]
  _UpperCAmelCase		:       Any       =    soup.find("""p"""	,      id="""description"""    ).get_text()
  _UpperCAmelCase,_UpperCAmelCase		:       Dict       =    os.path.splitext(os.path.basename(snake_case__    )    )
  _UpperCAmelCase		:       Tuple       =    title.strip().replace(""" """	,      """_"""    )
  _UpperCAmelCase		:       Optional[Any]       =    f'''{image_title}{image_extension}'''
  save_image(snake_case__	,      snake_case__    )
  return (title, description, image_title)


if __name__ == "__main__":
 SCREAMING_SNAKE_CASE__     ,				SCREAMING_SNAKE_CASE__     ,				SCREAMING_SNAKE_CASE__				:    Optional[int]         =    random_anime_character()
 print(F'{title}\n\n{desc}\n\nImage saved : {image_title}')





