
"""simple docstring"""





import math







def       __a	(						__lowerCamelCase    ):
   return sum(int(__lowerCamelCase    ) for digit in str(__lowerCamelCase    )    )







def       __a	(						__lowerCamelCase = 30    ):
   UpperCAmelCase_   :   Tuple     	=       []
   for digit in range(2,						100    ):
      for power in range(2,						100    ):
         UpperCAmelCase_   :   Optional[Any]     	=       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())




'''simple docstring'''





def 							snake_case				(		UpperCAmelCase						)->      int:







      """simple docstring"""
      if not isinstance(UpperCAmelCase   ,	UpperCAmelCase						):
            raise ValueError('double_factorial() only accepts integral values'						)
      if num < 0:
            raise ValueError('double_factorial() not defined for negative values'						)
      __A													=      1
      for i in range(UpperCAmelCase   ,	0   ,	-2						):
            value *= i
      return value


if __name__ == "__main__":
 import doctest

 doctest.testmod()






