def rank2severity(rank):
    """:Return: the BlameThrower severity for a bug of the given `rank`."""
    if 1 <= rank <= 4:
        return 'high'
    elif rank <= 12:
        return 'med'
    elif rank <= 20:
        return 'low'
    else:
        assert False