Problem K
I've Been Everywhere, Man

Someone recently asked her “how many different cities have you visited for work?” Thankfully Alice has kept a log of her trips. Help Alice figure out the number of cities she has visited at least once.
Input
The first line of input contains a single positive integer
Alice’s work only sends her to cities with simple names: city names only contain lowercase letters, have at least one letter, and do not contain spaces.
The number of trips is at most
Output
For each test case, simply output a single line containing a single integer that is the number of distinct cities that Alice has visited on her work trips.
Sample Input 1 | Sample Output 1 |
---|---|
2 7 saskatoon toronto winnipeg toronto vancouver saskatoon toronto 3 edmonton edmonton edmonton |
4 1 |