




from ..utils import DummyObject, requires_backends

class      UpperCAmelCase						(			metaclass=A   ):
   __SCREAMING_SNAKE_CASE		:							str							=					["torch", "librosa"]






   def __init__(	self   :       List[str]						,					*UpperCamelCase_   :       Optional[int]						,					**UpperCamelCase_   :       Optional[Any]     )->			Dict:
     requires_backends(self						,					['torch', 'librosa']     )






   @classmethod
   def  _a						(	cls   :       Optional[int]						,					*UpperCamelCase_   :       Dict						,					**UpperCamelCase_   :       Optional[int]     )->			Optional[int]:
     requires_backends(cls						,					['torch', 'librosa']     )






   @classmethod
   def  _a						(	cls   :       Optional[int]						,					*UpperCamelCase_   :       str						,					**UpperCamelCase_   :       Optional[int]     )->			Tuple:
     requires_backends(cls						,					['torch', 'librosa']     )

class      UpperCAmelCase						(			metaclass=A   ):
   __SCREAMING_SNAKE_CASE		:							Tuple							=					["torch", "librosa"]






   def __init__(	self   :       str						,					*UpperCamelCase_   :       Union[str, Any]						,					**UpperCamelCase_   :       int     )->			Optional[int]:
     requires_backends(self						,					['torch', 'librosa']     )






   @classmethod
   def  _a						(	cls   :       int						,					*UpperCamelCase_   :       List[Any]						,					**UpperCamelCase_   :       int     )->			Dict:
     requires_backends(cls						,					['torch', 'librosa']     )






   @classmethod
   def  _a						(	cls   :       List[str]						,					*UpperCamelCase_   :       Optional[int]						,					**UpperCamelCase_   :       Any     )->			List[Any]:
     requires_backends(cls						,					['torch', 'librosa']     )






import math


def 		_lowerCamelCase				(					UpperCamelCase							)			->		int:





  """simple docstring"""





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


def 		_lowerCamelCase				(					UpperCamelCase = 30							)			->		int:





  """simple docstring"""





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

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


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