#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
int n;
cin >> n;
unordered_map<string, int> mp;
while(n--){
string s;
cin >> s;
++mp[s];
}
cout << mp.size() << endl;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号