#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
int main() {
    int n;
    string s;
    vector<string> ss;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        cin >> s;
        ss.push_back(s);
    }
    sort(ss.begin(), ss.end());
    ss.erase(unique(ss.begin(), ss.end()), ss.end());
    cout << ss.size() << endl;
}
