from ..utils import DummyObject, requires_backends




class  __lowerCAmelCase	(							metaclass=a_    ):



 '''simple docstring'''
 _lowerCamelCase    :						Tuple					     =			['tensorflow_text']

 def __init__(      self							:		int							,      *lowerCamelCase							:		Dict							,      **lowerCamelCase							:		List[Any]	)			->				Optional[Any]:
        requires_backends(self							,      ['tensorflow_text']	)







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())

