def table(c):
    """Tranfer char to index.

    Args:
        c (str): one char.

    Returns:
        int: index of c.
    """
    i = ord(c)
    if i < 65:
        i -= 48
    else:
        i -= 55
    return i