Input (grade 7): All performances must end before midnight; long operas start earlier in the evening if need be.
Output (grade 9): All performances must end before midnight; long operas start earlier in the evening if necessary.