


'''simple docstring'''





from string import ascii_uppercase

__a     =			{str(ord(c) - 55): c for c in ascii_uppercase}
def   _UpperCamelCase				(						lowerCAmelCase_  ,						lowerCAmelCase_   )						->str:
   if isinstance(lowerCAmelCase_  ,						lowerCAmelCase_   ):
      raise TypeError("""int() can't convert non-string with explicit base"""   )
   if num < 0:
      raise ValueError("""parameter must be positive int"""   )
   if isinstance(lowerCAmelCase_  ,						lowerCAmelCase_   ):
      raise TypeError("""'str' object cannot be interpreted as an integer"""   )
   if isinstance(lowerCAmelCase_  ,						lowerCAmelCase_   ):
      raise TypeError("""'float' object cannot be interpreted as an integer"""   )
   if base in (0, 1):
      raise ValueError("""base must be >= 2"""   )
   if base > 3_6:
      raise ValueError("""base must be <= 36"""   )
   UpperCAmelCase							=     """"""
   UpperCAmelCase							=     0
   UpperCAmelCase							=     0
   while div != 1:
      UpperCAmelCase				,  UpperCAmelCase							=     divmod(lowerCAmelCase_  ,						lowerCAmelCase_   )
      if base >= 1_1 and 9 < mod < 3_6:
         UpperCAmelCase							=     ALPHABET_VALUES[str(lowerCAmelCase_   )]
      else:
         UpperCAmelCase							=     str(lowerCAmelCase_   )
      new_value += actual_value
      UpperCAmelCase							=     num // base
      UpperCAmelCase							=     div
      if div == 0:
         return str(new_value[::-1]   )
      elif div == 1:
         new_value += str(lowerCAmelCase_   )
         return str(new_value[::-1]   )

   return new_value[::-1]


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 for base in range(2, 37):
  for num in range(1000):
   assert int(decimal_to_any(num, base), base) == num, (
       num,
       base,
       decimal_to_any(num, base),
       int(decimal_to_any(num, base), base),
   )







def   _UpperCamelCase				(						lowerCAmelCase_  ,						lowerCAmelCase_   )						->int:
   return int((input_a, input_a).count(0   ) == 0   )
def   _UpperCamelCase				(						)						->None:
   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))



