Editorial for Back From Summer '17 P1: Pithy Pastimes
                Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
                Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Input , store it as an integer.
Keep a counter of how many words the teacher writes down.
Run a loop  times. In each loop, input a single string (word). If that word has a length of 
 or less, increment the counter by 
.
Finally, print the counter as the answer.
Comments