


A :	Union[str, Any]												=     (1, 1_5_3, 3_7_0, 3_7_1, 1_6_3_4, 2_4_6_7_8_0_5_1, 1_1_5_1_3_2_2_1_9_0_1_8_7_6_3_9_9_2_5_6_5_0_9_5_5_9_7_9_7_3_9_7_1_5_2_2_4_0_1)
A :	tuple												=     (-1_5_3, -1, 0, 1.2, 2_0_0, "A", [], {}, None)






def 				UpperCamelCase      (			__magic_name__  :							int  )     ->						bool:
		"""simple docstring"""




		if not isinstance(__magic_name__					,					__magic_name__  ) or n < 1:
				return False

		# Initialization of sum and number of digits.
		lowercase__      =	0
		lowercase__      =	0
		lowercase__      =	n
		# Calculation of digits of the number
		while temp > 0:
				number_of_digits += 1
				temp //= 10
		# Dividing number into separate digits and find Armstrong number
		lowercase__      =	n
		while temp > 0:
				lowercase__      =	temp % 10
				total += rem**number_of_digits
				temp //= 10
		return n == total






def 				UpperCamelCase      (			__magic_name__  :							int  )     ->						bool:
		"""simple docstring"""




		if not isinstance(__magic_name__					,					__magic_name__  ) or n < 1:
				return False

		# Init a "histogram" of the digits
		lowercase__      =	[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
		lowercase__      =	0
		lowercase__      =	0
		lowercase__      =	n
		while temp > 0:
				lowercase__    ,			lowercase__      =	divmod(__magic_name__					,					10  )
				digit_histogram[rem] += 1
				digit_total += 1

		for cnt, i in zip(__magic_name__					,					range(len(__magic_name__  )  )  ):
				total += cnt * i**digit_total

		return n == total






def 				UpperCamelCase      (			__magic_name__  :							int  )     ->						bool:
		"""simple docstring"""




		if not isinstance(__magic_name__					,					__magic_name__  ) or n < 1:
				return False
		lowercase__      =	len(str(__magic_name__  )  )  # the power that all digits will be raised to
		# check if sum of each digit multiplied expo times is equal to number
		return n == sum(int(__magic_name__  ) ** expo for i in str(__magic_name__  )  )






def 				UpperCamelCase      (			)     ->						List[str]:
		"""simple docstring"""




		lowercase__      =	int(input("""Enter an integer to see if it is an Armstrong number: """  ).strip()  )
		print(f'''{num} is {"" if armstrong_number(__magic_name__  ) else "not "}an Armstrong number.'''  )
		print(f'''{num} is {"" if narcissistic_number(__magic_name__  ) else "not "}an Armstrong number.'''  )
		print(f'''{num} is {"" if pluperfect_number(__magic_name__  ) else "not "}an Armstrong number.'''  )


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	main()





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available, is_torch_available


A :	str												=     {
    'configuration_nystromformer': ['NYSTROMFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP', 'NystromformerConfig'],
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	A :	Optional[int]												=     [
	    'NYSTROMFORMER_PRETRAINED_MODEL_ARCHIVE_LIST',
	    'NystromformerForMaskedLM',
	    'NystromformerForMultipleChoice',
	    'NystromformerForQuestionAnswering',
	    'NystromformerForSequenceClassification',
	    'NystromformerForTokenClassification',
	    'NystromformerLayer',
	    'NystromformerModel',
	    'NystromformerPreTrainedModel',
	]


if TYPE_CHECKING:
	from .configuration_nystromformer import NYSTROMFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, NystromformerConfig

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_nystromformer import (
		    NYSTROMFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
		    NystromformerForMaskedLM,
		    NystromformerForMultipleChoice,
		    NystromformerForQuestionAnswering,
		    NystromformerForSequenceClassification,
		    NystromformerForTokenClassification,
		    NystromformerLayer,
		    NystromformerModel,
		    NystromformerPreTrainedModel,
		)


else:
	import sys

	A :	Optional[int]												=     _LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)

