
'''simple docstring'''

import os

import requests
from bsa import BeautifulSoup
from fake_useragent import UserAgent

lowerCAmelCase_			:			Optional[int]			   =     {'''UserAgent''': UserAgent().random}
lowerCAmelCase_			:			Union[str, Any]			   =     '''https://www.mywaifulist.moe/random'''







def __A  (    lowerCAmelCase_ ,       lowerCAmelCase_       ):
     _UpperCAmelCase					:  Optional[int]         =    requests.get(lowerCAmelCase_ ,       headers=lowerCAmelCase_       )
     with open(lowerCAmelCase_ ,       """wb"""       ) as file:
          file.write(image.content       )







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


if __name__ == "__main__":
   lowerCAmelCase_   ,   lowerCAmelCase_   ,   lowerCAmelCase_			:			Union[str, Any]			   =     random_anime_character()
   print(F"{title}\n\n{desc}\n\nImage saved : {image_title}")




'''simple docstring'''

from itertools import permutations







def __A  (    ):
     _UpperCAmelCase					:  Union[str, Any]         =    list(map("""""".join ,       permutations("""0123456789"""       )       )       )
     return result[99_9999]


if __name__ == "__main__":
   print(solution())


