Last night, Henning was playing Starcraft 2 while simultaneously attempting to finish his English essay. Because he is such a grandmaster at the game, he can in fact do such a thing - but he only has a single keyboard. Henning has to reserve two thirds of his keyboard to play Starcraft 2; given a list of
Input Specification
On the first line, the number
Output Specification
A single line containing the number of strings that can be typed exclusively using a single row of the QWERTY keyboard.
Sample Input
Copy
5
dad
alaska
quip
legendary
gone
Sample Output
Copy
3
Comments