- The output should consist of a single line with a single word
- The word should be YES if it is possible to dispatch workers to complete all jobs according to the constraints mentioned above