import re
import string


def run(text: str, mode: str) -> str:
    """
    Remove the numbers/punctuation from a text.

    :param text: a text to process
    :param mode: the mode of processing
        - n: remove numbers
        - p: remove punctuation
        - np: remove numbers and punctuation
    :return: the processed text
    """
    if mode == "n":
        text = re.sub(r"[0-9]+", "", text)
    elif mode == "p":
        text = text.translate(str.maketrans("", "", string.punctuation))
    elif mode == "np":
        no_puncts = text.translate(str.maketrans("", "", string.punctuation))
        text = re.sub(r"[0-9]+", "", no_puncts)
    else:
        raise ValueError(f"Unsupported mode: {mode}")
    return text