eolymp
bolt
Try our new interface for solving problems
Problems

Count words

Count words

Text contains sequence of words separated with spaces. Each word consists of uppercase or lowercase letters. Count the number of words that contain at least $k$ uppercase letters. \InputFile The first line contains one positive integer $k~(k \le 100)$. Text is given starting from the second line. Text can contain multiple lines. Text contains letters of English alphabet (uppercase or lowercase) and spaces only. \OutputFile Print the number of words that contain at least $k$ uppercase letters.
Time limit 1 second
Memory limit 128 MiB
Input example #1
2
ThE      weather  iS fINE
   I  Like ScHooL verY mUcH
Output example #1
4
Author Michael Medvediev