





"""simple docstring"""
lowerCamelCase_       =		{
    "meter": "m",
    "kilometer": "km",
    "megametre": "Mm",
    "gigametre": "Gm",
    "terametre": "Tm",
    "petametre": "Pm",
    "exametre": "Em",
    "zettametre": "Zm",
    "yottametre": "Ym",
}
# Exponent of the factor(meter)
lowerCamelCase_       =		{
    "m": 0,
    "km": 3,
    "Mm": 6,
    "Gm": 9,
    "Tm": 1_2,
    "Pm": 1_5,
    "Em": 1_8,
    "Zm": 2_1,
    "Ym": 2_4,
}



def 					__lowerCamelCase       (							a_					:		float			,       a_					:		str			,       a_					:		str							)      ->				float:
      __SCREAMING_SNAKE_CASE       :Tuple		    =  from_type.lower().strip('''s'''							)
      __SCREAMING_SNAKE_CASE       :Any		    =  to_type.lower().strip('''s'''							)

      __SCREAMING_SNAKE_CASE       :Union[str, Any]		    =  UNIT_SYMBOL.get(a_			,       a_							)
      __SCREAMING_SNAKE_CASE       :int		    =  UNIT_SYMBOL.get(a_			,       a_							)

      if from_sanitized not in METRIC_CONVERSION:
            __SCREAMING_SNAKE_CASE       :List[str]		    =  (
                f'''Invalid \'from_type\' value: {from_type!r}.\n'''
                f'''Conversion abbreviations are: {", ".join(a_							)}'''
            )
            raise ValueError(a_							)
      if to_sanitized not in METRIC_CONVERSION:
            __SCREAMING_SNAKE_CASE       :Dict		    =  (
                f'''Invalid \'to_type\' value: {to_type!r}.\n'''
                f'''Conversion abbreviations are: {", ".join(a_							)}'''
            )
            raise ValueError(a_							)
      __SCREAMING_SNAKE_CASE       :Tuple		    =  METRIC_CONVERSION[from_sanitized]
      __SCREAMING_SNAKE_CASE       :Tuple		    =  METRIC_CONVERSION[to_sanitized]
      __SCREAMING_SNAKE_CASE       :Tuple		    =  1

      if from_exponent > to_exponent:
            __SCREAMING_SNAKE_CASE       :Optional[int]		    =  from_exponent - to_exponent
      else:
            __SCREAMING_SNAKE_CASE       :str		    =  -(to_exponent - from_exponent)

      return value * pow(10			,       a_							)


if __name__ == "__main__":
  from doctest import testmod

  testmod()






"""simple docstring"""
def 					__lowerCamelCase       (							a_					:		int			,       a_					:		int							)      ->				int:
      return int((input_a, input_a).count(0							) == 0							)



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