



from unittest.mock import patch

import datasets
from datasets import Dataset





def 				A      (	)							->					List[Any]:







			'''simple docstring'''
			_UpperCAmelCase									=  Dataset.from_dict({'col_1': [3, 2, 0, 1]}       )

			with patch('tqdm.auto.tqdm'       ) as mock_tqdm:
						datasets.disable_progress_bar()
						dset.map(lambda _UpperCAmelCase       : {"col_2": x["col_1"] + 1}       )
						mock_tqdm.assert_not_called()

						mock_tqdm.reset_mock()

						datasets.enable_progress_bar()
						dset.map(lambda _UpperCAmelCase       : {"col_2": x["col_1"] + 1}       )
						mock_tqdm.assert_called()





import math





def 				A      (	_UpperCAmelCase							:  int       )							->					int:







			'''simple docstring'''
			return sum(int(_UpperCAmelCase       ) for digit in str(_UpperCAmelCase       )       )





def 				A      (	_UpperCAmelCase							:  int = 30       )							->					int:







			'''simple docstring'''
			_UpperCAmelCase									=  []
			for digit in range(2				,  100       ):
						for power in range(2				,  100       ):
									_UpperCAmelCase									=  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())
