Hide
Problem A
Culture shock
The electric bracelet. Photographer Maj Stenmark. CC0
Input
The first line of input is an integer $1 \leq N \leq 100\, 000$, the number of words Thore speaks. This is followed by a single line with $N$ whitespace separated words, each word consisting of up to $20$ lowercase characters a–z.
Output
The number of electrical shocks Thore receives.
Sample Input 1 | Sample Output 1 |
---|---|
9 she sheared a sheep herd and he helped her |
3 |