- The output should contain a single line with a single word
- The word should be YES if there exists a subset of vertices of size atmost K for the given graph which satisifies the constraints mentioned above and the word should be NO otherwise
