import re


def validate_hgt(height: str) -> bool:
    """
    hgt (Height) - a number followed by either cm or in:
        If cm, the number must be at least 150 and at most 193.
        If in, the number must be at least 59 and at most 76.
    """
    maybe_number = re.findall(r"^[0-9]+", height)
    if len(maybe_number) != 1:
        return False
    number = int(maybe_number[0])

    maybe_unit = re.findall(r"cm$|in$", height)
    if len(maybe_unit) != 1:
        return False
    unit = maybe_unit[0]

    if unit == "cm":
        return 150 <= number <= 193
    return 59 <= number <= 76