


'''simple docstring'''
import math



def 				lowerCAmelCase__	(       UpperCAmelCase     ):






       """simple docstring"""





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



def 				lowerCAmelCase__	(       UpperCAmelCase = 30     ):






       """simple docstring"""





       snake_case__					:	str          =					[]
       for digit in range(2    ,       100     ):
              for power in range(2    ,       100     ):
                     snake_case__					:	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())








'''simple docstring'''
import math



def 				lowerCAmelCase__	(       UpperCAmelCase     ):






       """simple docstring"""





       snake_case__					:	Tuple          =					math.log(2    ,       10     ) * number
       snake_case__					:	int          =					round((log_number - int(UpperCAmelCase     ))    ,       15     )

       return difference



def 				lowerCAmelCase__	(       UpperCAmelCase = 67_8910     ):






       """simple docstring"""





       snake_case__					:	str          =					90
       snake_case__					:	Dict          =					0

       snake_case__					:	List[str]          =					math.log(1.2_3    ,       10     )
       snake_case__					:	Optional[Any]          =					math.log(1.2_4    ,       10     )
       snake_case__					:	Any          =					0

       while position < number:
              snake_case__					:	Tuple          =					log_difference(UpperCAmelCase     )

              if difference >= upper_limit:
                     power_iterator += 93

              elif difference < lower_limit:
                     power_iterator += 196

              else:
                     snake_case__					:	Union[str, Any]          =					power_iterator
                     power_iterator += 196
                     position += 1

       return previous_power


if __name__ == "__main__":
     import doctest

     doctest.testmod()

     print(f"""{solution() = }""")




