#include<bits/stdc++.h> using namespace std; int main(){set<string>S;string s; for(cin>>s;cin>>s;)S.insert(s);cout<<S.size(); }
非正解,不过本题能过,而且比较简洁