





"""simple docstring"""



def 		__lowercase					(       snake_case_  :  str    ,snake_case_  :  str						)       ->bool:



    '''simple docstring'''







    __A   :						Optional[int]									=					len(snake_case_						)
    __A   :						List[str]									=					len(snake_case_						)
    __A   :						List[Any]									=					[[False for _ in range(m + 1						)] for _ in range(n + 1						)]
    __A   :						Union[str, Any]									=					True
    for i in range(snake_case_						):
        for j in range(m + 1						):
            if dp[i][j]:
                if j < m and a[i].upper() == b[j]:
                    __A   :						Tuple									=					True
                if a[i].islower():
                    __A   :						Optional[int]									=					True
    return dp[n][m]


if __name__ == "__main__":
       import doctest

       doctest.testmod()











"""simple docstring"""



a_			=      {
    """meter""": """m""",
    """kilometer""": """km""",
    """megametre""": """Mm""",
    """gigametre""": """Gm""",
    """terametre""": """Tm""",
    """petametre""": """Pm""",
    """exametre""": """Em""",
    """zettametre""": """Zm""",
    """yottametre""": """Ym""",
}
# Exponent of the factor(meter)
a_			=      {
    """m""": 0,
    """km""": 3,
    """Mm""": 6,
    """Gm""": 9,
    """Tm""": 12,
    """Pm""": 15,
    """Em""": 18,
    """Zm""": 21,
    """Ym""": 24,
}







def 		__lowercase					(       snake_case_  :  float    ,snake_case_  :  str    ,snake_case_  :  str						)       ->float:



    '''simple docstring'''







    __A   :						Tuple									=					from_type.lower().strip('''s'''						)
    __A   :						Optional[int]									=					to_type.lower().strip('''s'''						)

    __A   :						List[str]									=					UNIT_SYMBOL.get(snake_case_    ,snake_case_						)
    __A   :						Any									=					UNIT_SYMBOL.get(snake_case_    ,snake_case_						)

    if from_sanitized not in METRIC_CONVERSION:
        __A   :						int									=					(
            F"""Invalid 'from_type' value: {from_type!r}.\n"""
            F"""Conversion abbreviations are: {', '.join(snake_case_						)}"""
        )
        raise ValueError(snake_case_						)
    if to_sanitized not in METRIC_CONVERSION:
        __A   :						str									=					(
            F"""Invalid 'to_type' value: {to_type!r}.\n"""
            F"""Conversion abbreviations are: {', '.join(snake_case_						)}"""
        )
        raise ValueError(snake_case_						)
    __A   :						Optional[Any]									=					METRIC_CONVERSION[from_sanitized]
    __A   :						Optional[int]									=					METRIC_CONVERSION[to_sanitized]
    __A   :						Union[str, Any]									=					1

    if from_exponent > to_exponent:
        __A   :						Dict									=					from_exponent - to_exponent
    else:
        __A   :						Union[str, Any]									=					-(to_exponent - from_exponent)

    return value * pow(10    ,snake_case_						)


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

       testmod()




