




def      __lowerCAmelCase			(					UpperCamelCase      )     ->	int:
		return 1 if digit in (0, 1) else (digit * factorial(digit - 1      ))



def      __lowerCAmelCase			(					UpperCamelCase      )     ->	bool:
		lowerCAmelCase__				:  int		       =     0
		lowerCAmelCase__				:  Optional[int]		       =     number
		while duplicate > 0:
				lowerCAmelCase__				:  Any		       =     divmod(UpperCamelCase	,      10      )
				fact_sum += factorial(UpperCamelCase      )
		return fact_sum == number


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







from datetime import datetime

import matplotlib.pyplot as plt
import torch



def      __lowerCAmelCase			(					UpperCamelCase      )     ->	str:
  for param in module.parameters():
    lowerCAmelCase__				:  int		       =     False



def      __lowerCAmelCase			(					)     ->	Optional[Any]:
  lowerCAmelCase__				:  List[Any]		       =     '''cuda''' if torch.cuda.is_available() else '''cpu'''
  if torch.backends.mps.is_available() and torch.backends.mps.is_built():
    lowerCAmelCase__				:  Optional[Any]		       =     '''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      __lowerCAmelCase			(					UpperCamelCase      )     ->	List[Any]:
  lowerCAmelCase__				:  str		       =     plt.imshow(UpperCamelCase      )
  fig.axes.get_xaxis().set_visible(UpperCamelCase      )
  fig.axes.get_yaxis().set_visible(UpperCamelCase      )
  plt.show()



def      __lowerCAmelCase			(					)     ->	str:
  lowerCAmelCase__				:  Dict		       =     datetime.now()
  lowerCAmelCase__				:  Optional[int]		       =     current_time.strftime('''%H:%M:%S'''      )
  return timestamp

