




import math

def 			lowerCAmelCase_			(  lowerCamelCase:       int						)					->			int:


      '''simple docstring'''




      return sum(int(lowerCamelCase						) for digit in str(lowerCamelCase						)						)

def 			lowerCAmelCase_			(  lowerCamelCase:       int = 30						)					->			int:


      '''simple docstring'''




      lowerCamelCase__        =				[]
      for digit in range(2     ,				1_00						):
            for power in range(2     ,				1_00						):
                  lowerCamelCase__        =				int(math.pow(lowerCamelCase     ,				lowerCamelCase						)						)
                  if digit == digit_sum(lowerCamelCase						):
                        digit_to_powers.append(lowerCamelCase						)

      digit_to_powers.sort()
      return digit_to_powers[n - 1]


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





from ..utils import DummyObject, requires_backends






class 			A			(		metaclass=_lowerCAmelCase		):
     """simple docstring"""

     _snake_case:	Optional[Any]     =["torch", "transformers", "invisible_watermark"]




     def __init__(    self  :   Dict	,  *A__  :   Optional[int]	,  **A__  :   Dict			)				->       Union[str, Any]:
           requires_backends(self	,  ['torch', 'transformers', 'invisible_watermark']			)




     @classmethod
     def  __snake_case   (    cls  :   Optional[int]	,  *A__  :   Dict	,  **A__  :   List[str]			)				->       Union[str, Any]:
           requires_backends(cls	,  ['torch', 'transformers', 'invisible_watermark']			)




     @classmethod
     def  __snake_case   (    cls  :   Optional[Any]	,  *A__  :   Dict	,  **A__  :   List[Any]			)				->       Dict:
           requires_backends(cls	,  ['torch', 'transformers', 'invisible_watermark']			)






class 			A			(		metaclass=_lowerCAmelCase		):
     """simple docstring"""

     _snake_case:	Dict     =["torch", "transformers", "invisible_watermark"]




     def __init__(    self  :   List[str]	,  *A__  :   str	,  **A__  :   int			)				->       List[Any]:
           requires_backends(self	,  ['torch', 'transformers', 'invisible_watermark']			)




     @classmethod
     def  __snake_case   (    cls  :   str	,  *A__  :   Any	,  **A__  :   Dict			)				->       Optional[Any]:
           requires_backends(cls	,  ['torch', 'transformers', 'invisible_watermark']			)




     @classmethod
     def  __snake_case   (    cls  :   List[str]	,  *A__  :   Optional[Any]	,  **A__  :   int			)				->       Dict:
           requires_backends(cls	,  ['torch', 'transformers', 'invisible_watermark']			)