



"""simple docstring"""







import math

def 	lowerCAmelCase__      (  lowerCamelCase__      )			->				int:
							return sum(int(__lowerCamelCase      ) for digit in str(__lowerCamelCase      )      )

def 	lowerCAmelCase__      (  lowerCamelCase__ = 30      )			->				int:
							A    =       []
							for digit in range(2					,   100      ):
														for power in range(2					,   100      ):
																					A    =       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())







a					:				Tuple       =      [0.4_85, 0.4_56, 0.4_06]
a					:				Optional[int]       =      [0.2_29, 0.2_24, 0.2_25]
a					:				List[Any]       =      [0.5, 0.5, 0.5]
a					:				Tuple       =      [0.5, 0.5, 0.5]
a					:				Optional[Any]       =      [0.48_14_54_66, 0.4_57_82_75, 0.40_82_10_73]
a					:				int       =      [0.26_86_29_54, 0.26_13_02_58, 0.27_57_77_11]






