* Line 1: Two integers, N and K.
* Lines 2..1+N: Each line is a sentence like "Farmer John has no large spotted noisy cow.". Each adjective in the sentence will be a string of at most 10 lowercase letters. You know you have reached the end of the sentence when you see the string "cow." ending with a period.