





'''simple docstring'''






def 					_a						(       _lowerCamelCase ) ->				int:



			"""simple docstring"""


			return 1 if digit in (0, 1) else (digit * factorial(digit - 1 ))







def 					_a						(       _lowerCamelCase ) ->				bool:



			"""simple docstring"""


			__snake_case					:      str							      =     0
			__snake_case					:      Any							      =     number
			while duplicate > 0:
						__snake_case      ,     __snake_case					:      Optional[int]							      =     divmod(_lowerCamelCase    ,	10 )
						fact_sum += factorial(_lowerCamelCase )
			return fact_sum == number


if __name__ == "__main__":
	print("Program to check whether a number is a Krisnamurthy Number or not.")
	__UpperCamelCase					    =	int(input("Enter number: ").strip())
	print(
	    f"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
	)










"""simple docstring"""
from datetime import datetime

import matplotlib.pyplot as plt
import torch


def 							A						(				__snake_case: Optional[int]  )    ->		Tuple:

       """simple docstring"""





       for param in module.parameters():
              __magic_name__      				=    False


def 							A						(				)    ->		Optional[Any]:

       """simple docstring"""





       __magic_name__      				=    'cuda' if torch.cuda.is_available() else 'cpu'
       if torch.backends.mps.is_available() and torch.backends.mps.is_built():
              __magic_name__      				=    'mps'
       if device == "mps":
              print(
                  'WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'
                  ' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'
                  ' with generations.'  )
       return device


def 							A						(				__snake_case: int  )    ->		List[Any]:

       """simple docstring"""





       __magic_name__      				=    plt.imshow(__snake_case  )
       fig.axes.get_xaxis().set_visible(__snake_case  )
       fig.axes.get_yaxis().set_visible(__snake_case  )
       plt.show()






def 							A						(				)    ->		List[Any]:

       """simple docstring"""





       __magic_name__      				=    datetime.now()
       __magic_name__      				=    current_time.strftime('%H:%M:%S'  )
       return timestamp