
"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




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




def     lowercase__						(					lowerCAmelCase				:					int ) ->      bool:






    """simple docstring"""




    UpperCAmelCase									=					0
    UpperCAmelCase									=					number
    while duplicate > 0:
        UpperCAmelCase			,							UpperCAmelCase									=					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.''')
   SCREAMING_SNAKE_CASE_    					=						int(input('''Enter number: ''').strip())
   print(
       F'{number} is {"" if krishnamurthy(number) else "not "}a Krishnamurthy Number.'
   )





"""simple docstring"""

def     lowercase__						(					lowerCAmelCase				:					int ,				lowerCAmelCase				:					int ) ->      int:






    """simple docstring"""




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




def     lowercase__						(					) ->      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))



