import re


def validate_height(hgt):
    """
    Validate 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.
    """
    match = re.search("([0-9]*)(cm|in)", hgt)
    if not match:
        return False

    if match[2] == "cm":
        return 150 <= int(match[1]) <= 193

    if match[2] == "in":
        return 59 <= int(match[1]) <= 76

    return False