def fits(capacity, booked, requested):
    remaining = capacity - booked
    return not (requested > remaining)
