


def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      )->						int:




      """simple docstring"""

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






def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      )->						bool:




      """simple docstring"""

      snake_case_ =   0
      snake_case_ =   number
      while duplicate > 0:
            snake_case_ ,					snake_case_ =   divmod(SCREAMING_SNAKE_CASE      ,      10      )
            fact_sum += factorial(SCREAMING_SNAKE_CASE      )
      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.'''
   )



def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      ,      SCREAMING_SNAKE_CASE      )->						int:




      """simple docstring"""

      return int((input_a, input_a).count(0      ) == 0      )






def  __lowerCAmelCase					()->						None:




      """simple docstring"""

      assert and_gate(0      ,      0      ) == 0
      assert and_gate(0      ,      1      ) == 0
      assert and_gate(1      ,      0      ) == 0
      assert and_gate(1      ,      1      ) == 1


if __name__ == "__main__":
   test_and_gate()
   print(and_gate(1, 0))
   print(and_gate(0, 0))
   print(and_gate(0, 1))
   print(and_gate(1, 1))