


def        lowerCAmelCase_  (      __lowerCamelCase			):

       if not isinstance(__lowerCamelCase							,			__lowerCamelCase			):
              raise ValueError("multiplicative_persistence() only accepts integral values"			)
       if num < 0:
              raise ValueError("multiplicative_persistence() does not accept negative values"			)

       __snake_case	:    Union[str, Any]											=     0
       __snake_case	:    Optional[int]											=     str(__lowerCamelCase			)

       while len(__lowerCamelCase			) != 1:
              __snake_case	:    List[Any]											=     [int(__lowerCamelCase			) for i in num_string]

              __snake_case	:    str											=     1
              for i in range(0							,			len(__lowerCamelCase			)			):
                     total *= numbers[i]

              __snake_case	:    Union[str, Any]											=     str(__lowerCamelCase			)

              steps += 1
       return steps







def        lowerCAmelCase_  (      __lowerCamelCase			):

       if not isinstance(__lowerCamelCase							,			__lowerCamelCase			):
              raise ValueError("additive_persistence() only accepts integral values"			)
       if num < 0:
              raise ValueError("additive_persistence() does not accept negative values"			)

       __snake_case	:    Any											=     0
       __snake_case	:    Union[str, Any]											=     str(__lowerCamelCase			)

       while len(__lowerCamelCase			) != 1:
              __snake_case	:    List[str]											=     [int(__lowerCamelCase			) for i in num_string]

              __snake_case	:    Optional[int]											=     0
              for i in range(0							,			len(__lowerCamelCase			)			):
                     total += numbers[i]

              __snake_case	:    List[str]											=     str(__lowerCamelCase			)

              steps += 1
       return steps


if __name__ == "__main__":
   import doctest

   doctest.testmod()





def        lowerCAmelCase_  (      __lowerCamelCase							,			__lowerCamelCase			):
							return int((input_a, input_a).count(0			) == 0			)







def        lowerCAmelCase_  (      ):
							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))

