#include <iostream>
#include <map>
using namespace std;
int main() {
int N;
cin>>N;
map<string, int> hash;
while(N--){
string str;
cin>>str;
hash[str]++;
}
cout<<hash.size();
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号