import re


def get_host(email: str) -> str:
    """ Get host from email

        Arguments:
            email (str): email to get host from

        Returns:
            str
    """
    try:
        host = re.findall(r"@(.*)$", email)[0]

        if "." not in host:
            host = "invalid"

    except IndexError:
        host = "invalid"

    return host