



def      _A				()  ->Any:



   '''simple docstring'''







   lowerCamelCase__ :      Optional[Any]								=		0
   for i in range(1      ,			1001 ):
      total += i**i
   return str(UpperCamelCase )[-10:]


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








from __future__ import annotations

import string
from itertools import cycle, product
from pathlib import Path

_lowercase     							=						(
    string.ascii_letters + string.digits + string.punctuation + string.whitespace
)
_lowercase     							=						[ord(letter) for letter in string.ascii_lowercase]
_lowercase     							=						{ord(char) for char in VALID_CHARS}

_lowercase     							=						["the", "be", "to", "of", "and", "in", "that", "have"]






def      _A				(UpperCamelCase		:      list[int]      ,			UpperCamelCase		:      tuple[int, ...] )  ->str | None:



			'''simple docstring'''







			lowerCamelCase__ :      str								=		""
			lowerCamelCase__ :      int
			lowerCamelCase__ :      int
			lowerCamelCase__ :      int

			for keychar, cipherchar in zip(cycle(UpperCamelCase )      ,			UpperCamelCase ):
						lowerCamelCase__ :      str								=		cipherchar ^ keychar
						if decodedchar not in VALID_INTS:
									return None
						decoded += chr(UpperCamelCase )

			return decoded






def      _A				(UpperCamelCase		:      list[int] )  ->list[str]:



			'''simple docstring'''







			lowerCamelCase__ :      list[str]								=		[]
			for key in product(UpperCamelCase      ,			repeat=3 ):
						lowerCamelCase__ :      Union[str, Any]								=		try_key(UpperCamelCase      ,			UpperCamelCase )
						if encoded is not None:
									possibles.append(UpperCamelCase )
			return possibles






def      _A				(UpperCamelCase		:      list[str]      ,			UpperCamelCase		:      str )  ->list[str]:



			'''simple docstring'''







			return [possible for possible in possibles if common_word in possible.lower()]






def      _A				(UpperCamelCase		:      str = "p059_cipher.txt" )  ->int:



			'''simple docstring'''







			lowerCamelCase__ :      list[int]
			lowerCamelCase__ :      list[str]
			lowerCamelCase__ :      str
			lowerCamelCase__ :      str
			lowerCamelCase__ :      str								=		Path(UpperCamelCase ).parent.joinpath(UpperCamelCase ).read_text(encoding="""utf-8""" )

			lowerCamelCase__ :      str								=		[int(UpperCamelCase ) for number in data.strip().split(""",""" )]

			lowerCamelCase__ :      Optional[Any]								=		filter_valid_chars(UpperCamelCase )
			for common_word in COMMON_WORDS:
						lowerCamelCase__ :      Optional[int]								=		filter_common_word(UpperCamelCase      ,			UpperCamelCase )
						if len(UpperCamelCase ) == 1:
									break

			lowerCamelCase__ :      Union[str, Any]								=		possibles[0]
			return sum(ord(UpperCamelCase ) for char in decoded_text )


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



