def char_to_num(x: str) -> int:
    """Converts a character to a number

    :param x: Character
    :type x: str
    :return: Corresponding number
    :rtype: int

    """
    total = 0
    for i in range(len(x)):
        total += (ord(x[::-1][i]) - 64) * (26 ** i)
    return total