




import math







def 		lowercase__ (		__A:						int					):





					'''simple docstring'''






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







def 		lowercase__ (		__A:						int = 3_0					):





					'''simple docstring'''






					__magic_name__				:						Any     				=				[]
					for digit in range(2				,1_0_0					):
										for power in range(2				,1_0_0					):
															__magic_name__				:						Tuple     				=				int(math.pow(__A				,__A					)					)
															if digit == digit_sum(__A					):
																				digit_to_powers.append(__A					)

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


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









def 		lowercase__ (		__A:						int					):





					'''simple docstring'''






					if not isinstance(__A				,__A					):
										__magic_name__				:						Dict     				=				F'''Input value of [number={number}] must be an integer'''
										raise TypeError(__A					)
					if number < 0 or number % 2 == 1:
										return False
					__magic_name__				:						Any     				=				int(number**0.5					)
					return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
	import doctest

	doctest.testmod()



