


import math
def        UpperCAmelCase_      (							__snake_case		)  ->    int:







 """simple docstring"""


 return sum(int(__snake_case		) for digit in str(__snake_case		)		)
def        UpperCAmelCase_      (							__snake_case = 30		)  ->    int:







 """simple docstring"""


 _lowercase							   =[]
 for digit in range(2  ,		100		):
  for power in range(2  ,		100		):
   _lowercase							   =int(math.pow(__snake_case  ,		__snake_case		)		)
   if digit == digit_sum(__snake_case		):
    digit_to_powers.append(__snake_case		)

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


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





from ..utils import DummyObject, requires_backends







class    lowerCamelCase__     ( metaclass=lowerCAmelCase):
     SCREAMING_SNAKE_CASE__       =    ['''tensorflow_text''']





     def __init__(self	,  *UpperCAmelCase	,  **UpperCAmelCase )  ->     Any:
      requires_backends(self	,  ['''tensorflow_text'''] )

