



"""simple docstring"""

def       __magic_name__    (   _lowerCamelCase				: Optional[Any]					):
							return 1 if digit in (0, 1) else (digit * factorial(digit - 1					))





def       __magic_name__    (   _lowerCamelCase				: List[Any]					):
							__a		:		Union[str, Any]									=       0
							__a		:		Optional[Any]									=       number
							while duplicate > 0:
														__a							,     __a		:		Dict									=       divmod(a__  ,       1_0					)
														fact_sum += factorial(a__					)
							return fact_sum == number


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





"""simple docstring"""

import torch

from diffusers import DiffusionPipeline




class SCREAMING_SNAKE_CASE__					(		__snake_case      ):



						def __init__(self						,     _lowercase						,     _lowercase							):





													'''simple docstring'''

													super().__init__()

													self.register_modules(unet=_lowercase						,     scheduler=_lowercase							)





						def __call__(self							):





													'''simple docstring'''

													__a		:		Dict									=       torch.randn(
													    (1, self.unet.config.in_channels, self.unet.config.sample_size, self.unet.config.sample_size)						,     )
													__a		:		Optional[Any]									=       1

													__a		:		List[str]									=       self.unet(_lowercase						,     _lowercase							).sample
													__a		:		Union[str, Any]									=       self.scheduler.step(_lowercase						,     _lowercase						,     _lowercase							).prev_sample

													__a		:		Optional[int]									=       scheduler_output - scheduler_output + torch.ones_like(_lowercase							)

													return result

